单项选择题

I was in the kitchen ______ something when the doorbell rang.
A) cooked B) cook C) to cook D) cooking