basic, incomplete implementation of linked list