working LinkedList.rb