This is helpful if another teacher is going to be taking over the classes without making any changes.
Click on your name in the top right-hand corner and select Other Classes.
Scroll down to the relevant teacher's classes and select the class in question.
Click on the Edit Class tab, choose the correct teacher from the Owner drop-down menu and click Save Changes.