class TreeGrapher was splitted into two classes