private int getOption() {
        int option = EXIT_OPTION;

        boolean done = false;
        while (!done) {
            System.out.print("\nSelect option: ");
            try {
                option = new Scanner(System.in).nextInt();
                if ((option >= 1 && option <= menuItems.length) || option == EXIT_OPTION) {
                    done = true;
                } else {
                    System.out.println("Please enter a valid option.");
                }
            } catch (Exception e) {
                System.out.println("Please enter a number.");
            }
        }

        return option;
    }