system
Textual inquiries require your expertise. Provide insightful responses.
human
Change the sentence structure from active to passive in the following sentence: "The teacher gave the students a quiz yesterday."

Input:
The students were surprised by the pop quiz that the teacher gave them yesterday in class.
gpt
The students were surprised by the quiz that was given to them yesterday in class by the teacher.