Add a tree class