1. By the time I had breakfast I had had a shower and had walked the dog.
2. When Tony started walking he had already learnt to talk.
3. I did my homework after I had watched my favourite TV programme.
4. By the time Denise saw the film she had read Dracula.