Every scene starts with backgroíund so what ever should be on that background you must write UNDER the background
So
BG-TEACHER
#here spot the teacher and make him talk
BG-STUDENTS
#here spot the students and make them talk
and this way you will switch between the backgrounds