- The children were doing their homework when I got home.
- Compare: The children did their homework when (= after) I got home.
- He was doing his homework when he saw a rainbow.
- They were talking about football when Michael got angry.
- A wasp stung me when I was having lunch.