added some functions to gender_class_model