Write three sentences each using a comma in a different way explain why the comma is needed in each sentence

1. The hiker, carrying a heavy backpack, slowly made his way up the steep mountain trail. - In this sentence, the comma is needed to set off the phrase "carrying a heavy backpack" as additional information about the hiker. It helps to clarify that the hiker is carrying a heavy backpack while also emphasizing that this information is not essential to the sentence's main point.

2. Maria loves to travel, eat delicious food, and spend time with friends. - Here, the comma is needed to separate a list of three items. It helps to distinguish between the different activities that Maria loves, ensuring clarity and avoiding any confusion or ambiguity.

3. After studying for hours, Jane finally took a break and went for a walk. - In this sentence, the comma is needed to separate the introductory dependent clause ("After studying for hours") from the main clause ("Jane finally took a break and went for a walk"). It clarifies the sequencing of events, indicating that Jane took a break after studying for hours.