Analyze the sentence to determine whether it contains a dangling construction or is written correctly.
The class wrote feverishly trying to complete the essay test.