Choose the correct option.
I saw a nice kitten when I (open) the basket.
opened
had opened
had been opening
was opening