Which is the tense of the underlined verb?

She had been writing poetry but thought her ideas would work better as a novel.

A.
past progressive

B.
present progressive

C.
present perfect progressive

D.
past perfect progressive