Leonard was exhausted because he had been working in his lab all night.
Patty had already left the party when Jim arrived.
She wanted to come with us but she had not finished her project.
They had been living in London for ten years before they moved to Paris.
1 been waiting
2 went out
3 had cleaned
4 was walking