Created TreeNode class