Implemented Node class in LinkedList project