We can't do anything with these examples from your book - you need to give us some samples of your own writing, or ask specific questions about what you've been studying. If you do that, we will be here to help!
P.S. In American English, the second example would be: No sooner had I seen his girlfriend than I realized I had met her before.
- For Teachers