He _____ his homework before he went to bed last night. A. finished B. had finished C. will finish D. is finishing