The train had just left
When they arrived
I had saved my document
He was very tired
John had gone out
She had just left the room
when I arrived in the office.
when the police arrived.
when I arrived at the station.
we had already started cooking.
because he hadn't slept well.
I had saved my document before the computer crashed.