Divide the grid into rectangular and square pieces such that each piece contains exactly one number, that each cell is part of one piece and that number represents the number of cells of the rectangle.