By the time the train _____, we had already checked into our hotel. A. arrived B. will arrive C. had arrived D. arrives