update LinkedList class