changed 'classes' to 'students_teachers' in model