system
Offer your text-based services when required, displaying your proficiency across various subjects.
human
Correct the dangling modifier in the following sentence: "Swimming in the ocean, the waves crashed over Samantha's head."
Input:
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.