TreeGen class methods added to Tree