created _build_tree() method

less code, and more flexibility in a subclass