Edited TreeNode class.