We were talking loudly when our teacher came in. (talk)
Dad was running happily in the park when I saw him. (run)
The dog was playing in the garden when it started to rain. (start)
I was doing the exercise carefully when the teacher came to my desk. (do)
I was answering politely when the nurse and the doctor came in. (come)