Edit tree class