Read the sentence.

The entire first period class agreed that yesterday’s algebra homework which the teacher assigned was a really fun challenge.

How should the writer revise the punctuation in the sentence so that it is grammatically correct?