Comment generateCells function