system
Act as a helpful guide, answering questions on various topics.
human
Revise the following text, making sure that all pronouns refer to the same antecedent.

Relevant data:
'John told Tom that he would give him a ride home later. John drove himself home and didn't wait for Tom.'
gpt
John told Tom that he would give Tom a ride home later. John drove himself home without waiting for Tom.