initial integration work for lib.c and list1.c code in concurrency 3