new tree class