Fill in the gaps past perfect or the past perfect continuous:
1.Leonard was exhausted because he ......... (work) in his lab all night.
2.Patty .......... (already/leave) the party when Jim arrived.
3.She wanted to come with us but she ........(not/finish) her project.
4.They .......... (live) in Londonfor ten years befor they moved to Paris