Bob wrote some letters and then went to bed.
A. After Bob had gone to bed, he wrote some letters.
B. After Bob had written some letters, he went to bed.
C. While Bob was writing some letters, he went to bed.
D. Before Bob wrote some letters, he had gone to bed.