appending linked list nodes and printing list