He _____ his homework when his mother called him for dinner. A. was doing B. did C. has done D. will do