Which revision corrects the dangling modifier in this sentence?

Strolling on the boardwalk, the whale suddenly breached.

Responses

While we were strolling on the boardwalk, the whale suddenly breached.

The whale was suddenly breaching, strolling on the boardwalk.

The whale suddenly breached strolling on the boardwalk.

Strolling on the boardwalk, the whale was breaching.

While we were strolling on the boardwalk, the whale suddenly breached.