He _______ his homework when his friends called him to play football. A. was doing B. did C. had done