Create class for tree nodes.