Tolya:we had a grammar class yesterday переделать в коственную речь
Tolya said that they had had a grammar class the day before.