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

1. I went to the store to buy groceries, but I forgot my wallet.

In this sentence, the comma is needed to separate two independent clauses that are joined together by the conjunction "but". Without the comma, the sentence may be misinterpreted or confusing.

2. After finishing dinner, I decided to go for a walk.
Here, the comma is needed to separate the dependent clause "After finishing dinner" from the independent clause "I decided to go for a walk". This helps clarify the relationship between the two parts of the sentence and provides a natural pause when reading.

3. The book, which I borrowed from the library, was an incredible adventure.
In this sentence, the comma is used to set off a nonessential clause ("which I borrowed from the library") that provides additional information about the book. The comma indicates that this clause is not necessary for understanding the main part of the sentence.