MainTree for multilevel classifications