Write three sentences, each using a comma in a different way. Explain why the comma is needed in each sentence

1) "I need to buy groceries, milk, and bread from the store." In this sentence, the comma is used to separate items in a list. It helps to clearly identify and distinguish each item being mentioned.

2) "After finishing his meal, John decided to take a walk." Here, the comma is used to separate a dependent clause ("After finishing his meal") from the main clause ("John decided to take a walk"). This separation helps to indicate the relationship between the two ideas in the sentence.

3) "The book, which has been on the bestseller list for months, is now being turned into a movie." The comma is used to set off a nonessential clause ("which has been on the bestseller list for months"), providing additional information about the noun "book." The comma helps to separate this clause without changing the essential meaning or structure of the sentence.