Revised the LinkedList get method.