Change Past Perfect Active into Past Perfect Passive.
1. I had written the letter when he came.
2. He had finished the work by 5 o’clock.
3. They had fulfilled the plan by the end of the last year.
4. People had made the first gas stove before the first electric stove appeared.
5. Doug Engelhart had earned nearly two dozen patens before he introduced the computer mouse.