The use of past perfect simple and continuous to talk about things that happened before another event in the past.