public static void fin(Init init) {
        String savefilename = init.testmodule.savefileName; 
        WriteFile cab = new WriteFile("./Results/" + savefilename + ".xrsbxl2x");
        String fileContent = "Correct: " + init.correct + "\nIncorrect: " + init.incorrect
            + "\nName: " + init.testmodule.name + "\nAge: " + init.testmodule.age +
                "\nName of test: " + init.checkmodule.TEST_NAME;
        try {
            cab.writeToFile(fileContent);
        } catch (IOException ex) {
            System.out.println(ex.getMessage());
            System.exit(-1);
        }
        System.out.println("Do you want to view your results? (yes|no)");
        String choice = "";
        try {
            choice = init.cache.readLine();
        } catch (IOException ex) {
            System.out.println(ex.getMessage());
            System.exit(-1);
        }
        choice = choice.toLowerCase();
        switch (choice) {
            case "yes":
                {
                    Result read = new Result(init.testmodule.savefileName);
                    read.readResults();
                    break;
                }
            case "y":
                {
                    Result read = new Result(init.testmodule.savefileName);
                    read.readResults();
                    break;
                }
        }
    }