What is the tense of the underlined verb?

We had just finished our dinner when the snow began to fall.

A.
future perfect

B.
past perfect

C.
present perfect

D.
past