By the time they wrote the text,the lesson had been over.
Before my parents came home,I had cooked dinner.
I didn’t know about it because I hadn’t been there.
When I phoned my friend he had gone to the gym.
When we arrived at the party,they had eaten the cake.