Partial implementation of the class for singly linked list