Simple tree class