first implem of auto class generation and multihypthesis