Read the sentence.

Running down the sidewalk, a hole in the pavement caused me to trip.
Which revision of the sentence is grammatically correct?
a)Running down the sidewalk,there was a hole in the pavement, I tripped on it.
b)Running down the sidewalk, the pavement had a hole that made me trip.
c)Running down the sidewalk, a hole in the pavement that made me trip.
d)Running down the sidewalk, I tripped on a hole in a pavement.
Is the answer D?

Right.