added tree class