add m2m relation between Student -> Class and Teacher -> Class through StudentClass and TeacherClass