finished system to pass data to threads + testcase demonstration