@Override
    public String webAssignMod(String modCode, String matricNum) {
        studentEntity = lookupStudent(matricNum);
        moduleEntity = lookupModuleFromCode(modCode);

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