change used List class to our own SingleLinkedList implementation