Which of the following contains a vague pronoun reference?
A. Rick waved goodbye to Dan as his train pulled out of the station.
B. As Dan's train pulled out of the station, Rick waved goodbye to him.
Answer with the option's letter from the given choices directly.

A