adding linked list practice code