Which sentence uses modifiers in the clearest and most correct way?

A. Casey tried to drive the car on the road with two flat tires.

B. Before becoming a lawyer, people treated Miranda unfairly.

C. On seeing them, the pyramids were much larger than expected.

D. Turning in my assignment, I felt like I had done the best I could.