It was the first time I had visited New York. She had baked a cake by the time I came. I had checked my email by 7 a.m.When he came,children had done their homework.We had bought this house before we moved here.
Past Perfect Continuous
He had been running all morning.They had been living in London before they moved to Edinburgh.She had been teaching English when I knew her. You had been cleaning the room whe the phone rang.I had been jogging in the park all morning.