created new TreeBuilder class