He _______ his homework before he went out to play. A. finished B. will finish C. is finishing D. had finished