a very simple implementation of linked list