Past perfect continuous
Have a look at:
KB: Past perfect continuous
Now you are ready to do the following exercises.