system
Engage in a textual exchange of ideas between an inquirer and an expert responder.
human
Reorganize the following paragraph to make it more coherent.
'John went to the store to buy some groceries. He saw his friend Mike who invited him to a party. John declined the invitation and continued with his shopping. However, he regretted his decision later.'
gpt
John went to the store to buy some groceries. While he was there, he ran into his friend Mike who invited him to a party. Despite regretting his decision later, John declined the invitation and continued with his shopping.