@Override
    public String webAssignTutorial(String modCode, String tutGrp, String matricNum) {
        studentEntity = lookupStudent(matricNum);
        moduleEntity = lookupModuleFromCode(modCode);
        tutorialEntity = lookupTutorial(tutGrp);
        System.out.println("Tutorial Entity: " + tutorialEntity);

        String tutGrpTime = tutorialEntity.getTime();
        ArrayList<String> tutorialTimes = new ArrayList<>();
        ArrayList<String> moduleTimes = new ArrayList<>();
        for (TutorialEntity t : studentEntity.getTutorials()) {
            if (t.equals(tutorialEntity)) {
                break;
            }
            tutorialTimes.add(t.getTime());
        }
        for (ModuleEntity m : studentEntity.getModules()) {
            moduleTimes.add(m.getTime());
        }
        for (String tutorialTime : tutorialTimes) {
            if (isClash(tutGrpTime, tutorialTime)) {
                return "UNSUCCESSFUL: There is a clash in timings with one of your tutorials on " + tutorialTime;
            }
        }
        for (String moduleTime : moduleTimes) {
            if (isClash(tutGrpTime, moduleTime)) {
                return "UNSUCCESSFUL: There is a clash in timings with one of your modules on " + moduleTime;
            }
        }
        return assignTutorialToStudent(modCode, tutGrp, matricNum);
    }