Working append to linked list