Work on singly-linked list