1. I had been doing my homework for thirty minutes when you called me. 2. Marty and Kitty were very cheerful then because they had been resting all the day. 3. She had been cooking for half an hour when their guests knocked. 4. They had been standing on the bus stop for fifteen minutes when the bus came. 5. Had you been reading for the whole day?