@@ -0,0 +1,985 @@
+package cs437.som;%0A%0A/**%0A * Grouping of x- and y-coordinates or height and width (with area).%0A */%0Apublic class Dimension %7B%0A    /**%0A     * The dimension value in the x direction, generally the width.%0A     */%0A    public final int x;%0A%0A    /**%0A     * The dimension value in the y direction, generally the height.%0A     */%0A    public final int y;%0A%0A    /**%0A     * The area, taking x and y to be width and height.%0A     */%0A    public final int area;%0A%0A    /**%0A     * Create a new dimension.%0A     * @param x The x value to assume.%0A     * @param y The y value to assume.%0A     * @throws SOMError if x or y is less than 0.%0A     */%0A    public Dimension(int x, int y) %7B%0A        if (x %3C= 0 %7C%7C y %3C= 0) %7B%0A            throw new SOMError(%22Cannot have a negative or zero dimension.%22);%0A        %7D%0A        this.x = x;%0A        this.y = y;%0A        area = x * y;%0A    %7D%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    @Override%0A    public String toString() %7B%0A        return %22Dimension%7Bx=%22 + x + %22, y=%22 + y + '%7D';%0A    %7D%0A%7D%0A

Add a Dimension class for managing grid sizes.