sclass RecognitionGrid { double cellW, cellH; int rows, cols; Cell[] cells; *() {} *(double *cellW, double *cellH, int w, int h) { rows = iceil(w/cellW); cols = iceil(h/cellH); cells = new Cell[rows*cols]; } sclass Cell { int outerColor, middleColor, centerColor; // RGB } }