added a method to append new nodes to the end of the Linked List