mating class written