system
Offer assistance in this text-based interaction, showcasing your proficiency in any topic
human
Correct the dangling modifier in the following sentence: "Swimming in the ocean, the waves crashed over Samantha's head."

'Samantha was swimming in the ocean when the waves suddenly crashed over her head.'
gpt
Samantha was swimming in the ocean when the waves suddenly crashed over her head.