Singly Linked List excercise