Can you also check this other exercise, please? Thank you very much.

1) Complete with the correct form of the verbs in the past simple, past perfect, and past continuous.
1. My friend ............. (be) very upset because someone ....... (steal) her bag before I saw her.
2.I........... (wait) for the bus when I ........(hear) someone call my name.
3. They ............ (eat) fish and chips when Andy ....(come) into the café.
4. When she .... (arrive) at the party, her friend .....(leave) five minutes before.
5. I ....(get) home at half past four and immediately .... (do) my homework.

These all look fine, too.