The secretary worked late into night, ______ a long speech for the president.
A、to prepare   
B、preparing   
C、prepared  
D、was preparing