system
Perform all tasks and answer all questions accurately and completely.
human
Rewrite the following sentence to improve coherence by using pronouns and synonyms.

'John went to the store. He bought some groceries. He forgot his wallet in the car. He had to go back to the parking lot to get it.'
gpt
John went to the store and bought some groceries but forgot his wallet in the car. He had to go back to the parking lot to retrieve it.