Get the linkedlist implementation correct