Adding LinkedList function