class Tree attr_accessor :root def initialize @root=nil end private def get_new_node(node) Node.new(node) end public def i