finalized exercise11.2.c  singly linked list - w/ function to append node at end of list