He _______ his homework before he went to bed. A. Finished B. Will finish C. Is finishing D. Has finished