public void saveCode(List<String> lines, String outputLocation) {
        try {
            PrintStream printStream = new PrintStream(new FileOutputStream(outputLocation));

            int lineNum = 0;
            for (String s : lines) {
                printStream.println(lineNum + ": " + s);
                lineNum++;
            }

            for (Block block : blockset) {
                printStream.println("");
                printStream.println("block: ");
                int line = 0;
                for(String s : block.getLines()) {
                    line++;
                    printStream.println(line+ ": "+s);
                }
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }