Implemented TreeBuilder