model for linkedlist