system
Textual inquiries require your expertise. Provide insightful responses.
human
Identify the different pronouns used in this paragraph and clarify each of their antecedents.

Relevant data:
John went to the store and bought some groceries. When he got home, he noticed that he forgot to buy bread. After putting away the groceries, he went back to the store to buy some bread.
gpt
John went to the store and bought some groceries. When John got home, he noticed that he forgot to buy bread. After putting away the groceries, John went back to the store to buy some bread.