public static void saveDimension(File file, PlaneDimension pd) {
        Cell[][] dim = pd.getAllSeats();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < dim[0].length; i++) {
            for (int j = 0; j < dim.length; j++) {
                int outputVal = 0;
                Cell.CellType ct = dim[j][i].getCellType();
                if (ct == Cell.CellType.SEAT) {
                    outputVal = 1;
                } else if (ct == Cell.CellType.PRIORITY_SEAT) {
                    outputVal = 2;
                } else if (ct == Cell.CellType.AISLE) {
                    outputVal = 3;
                }


                sb.append(outputVal).append(" ");
            }
            sb.append("\n");
        }
        String toOut = sb.toString();


        try {

            FileOutputStream fos;
            fos = new FileOutputStream(file);
            BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos));

            bw.write(toOut);

            bw.close();
            fos.close();
        } catch (Exception ex) {
        }
    }