implement the new interface for single linked list