start of singly linked list exercise