Pete said that he was doing his homework then.
The teacher wondered if he was coming to school that day.