add tree class representation