Add tree class