had been + Ving

an action that had been in progress by a moment in the past

When my mom came I had been doing my homework for a hour.

I was excitied because I‘d been celebrating New Year with my friends and family.

Exercises