Select the sentence with the misplaced modifier.

A.Jeremy had never been to a carnival before but always thought it sounded like fun.
B.When a carnival came to town, Jeremy knew he had to go on all of the rides.
C.Jeremy began saving all the money in a shoebox that he earned doing chores.
D.Riding the Ferris wheel, Jeremy couldn’t have been happier.
I think its C