adding interface for linkedlist