added add to linked list function