add tree class