public void mainMenu() {
        ArrayList<CV> CVList = new ArrayList<CV>();
        CVManagerImplementation cvman = new CVManagerImplementation();

        while (true) {
            System.out.println("Do you want to enter a CV? Yes or No?");
            char answer = takeUserInput().charAt(0);
            if (answer == 'y') {
                System.out.println("Enter the details for your CV below as prompted: ");
                CV cv = new CV();
                cvman.add(CVList, cv);
                answer = 'a';
            } else {
                System.out.println("Do you want to view all current CVs? Yes or No?");
                answer = takeUserInput().charAt(0);
            }
            if (answer == 'y') {
                cvman.view(CVList);
                System.out.println("All CVs in JSON format:");
                System.out.println("---------------------------");
                cvman.viewJSON(CVList);
                System.out.println("---------------------------");
                answer = 'a';
            }

            System.out.printf("Do you want to view a certain CV from a list of %d CVs? Yes or No?", CVList.size());
            answer = takeUserInput().charAt(0);
            if (answer == 'y') {
                while (true) {
                    System.out.printf("Enter a CV number from 1 to %d", CVList.size());
                    try {
                        int CVnum = Integer.parseInt(takeUserInput());
                        cvman.view(CVList, CVnum);
                        break;
                    } catch (NumberFormatException e) {
                        System.out.println("Please enter an integer!");
                        continue;
                    }
                } // end validation for integer for choice for view (int)

            } // end if choice for view (int)
            System.out.println("Quit? Yes or No?");
            answer = takeUserInput().charAt(0);
            if (answer == 'y') {
                in.close();
                System.out.println("Exporting data in CSV...Done.");
                cvman.exportToCSV(CVList);
                break;
            } else
                answer = 'a';
        } // end while
    }