private void addModule() {
        try {
            System.out.println("Add Module:");
            System.out.print("Enter module code:");
            String modCode = sc.nextLine();
            boolean isNewModule = mrsb.isNewModule(modCode);
            if (isNewModule) {
                System.out.print("Enter title: ");
                String title = sc.nextLine();
                System.out.print("Enter time: ");
                String time = sc.nextLine();
                System.out.print("Enter venue: ");
                String venue = sc.nextLine();
                mrsb.createModule(modCode, title, time, venue);
                System.out.print("Enter module synopsis: ");
                String content = sc.nextLine();
                mrsb.createSynopsis(content);
                System.out.print("Enter module lecturer's staff number: ");
                String staffNum = sc.nextLine(); //
                if (!mrsb.isNewLecturer(staffNum)) {
                    mrsb.linkSynopsis();
                    mrsb.linkLecturer(staffNum);
                    System.out.println();
                    System.out.println("Module " + modCode + " has been added!");
                } else {
                    System.out.println("Lecturer for Module does not exist!");
                }
            } else {
                System.out.println("Sorry, this module already exists!");
            }
        } catch (Exception ex) {
            System.err.println("Caught an unexpected exception");
            ex.printStackTrace();
        }
    }