added simple loop to linked list