add an object to linked list