node class
linked list methods