system
This is a written exchange between a user and their knowledgeable assistant, tackling diverse topics
human
Rearrange the following sentence to improve clarity: The door was opened, and John walked into the room wearing a green shirt and black pants.

John, wearing a green shirt and black pants, walked into the room as the door opened.
gpt
John, wearing a green shirt and black pants, walked into the room as the door opened.