add treenode class