Add the ending -ing to the given verb and choose the sentence in which the verb functions as a gerund.
After his husband's death, she took to (write) a diary because she had no one else to talk to.
Mary had been (write) very quickly and she ended up with ink all over her fingers because the pen was broken.