added a linked list and a test in main.c