how to assign a teacher to a group