update teacher, student models