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