added exercise11.2.c  w/ linked list in main function