static void Main(string[] args) { Tree tree = new Tree(); tree.AddNode(3); tree.Insert(tree.root, tree.AddNode(2)); tree.Insert(tree.root, tree.AddNode(1)); tree.Insert(tree.root, tree.AddNode(4)); tree.Insert(tree.root, tree.AddNode(10)); tree.Insert(tree.root, tree.AddNode(6)); tree.Print(tree.root); }