linked list practice
re-structured