added node class for singly linked list questions