New class ObjectTree to define trees of objects.