Programmed LinkedList to work.