Basic implementation of linked list class (incomplete)