Past Perfect:
I spoke to Susie at noon; someone had told her the news earlier.
The shop was closed because the shop assistant had left before closing times.
The party had not started by the time I arrived.
Mark slept all morning because he had been at a club the night before.
Past Perfect Continuous:
We had been waiting for two hours by the time his train arrived.
When I looked at her I knew she had been crying.
He had been working for
this company for 10 years before he retired.