@Override
    public String viewTutorial(String modCode) {
        String result = "";
        moduleEntity = lookupModuleFromCode(modCode);
        if (moduleEntity == null) {
            return "Module not found!\n";
        }
        Collection<TutorialEntity> currTuts = moduleEntity.getTutorials();
        if (currTuts.isEmpty()) {
            return "Module has no tutorials!\n";
        }
        for (TutorialEntity tut : currTuts) {
            result = result + tut.getGroupNumber() + " " + tut.getTime() + " "
                    + tut.getVenue() + " " + tut.getTutor().getName() + "\n";
            result = result + "Registered Students:\n";
            Set<StudentEntity> currentStudents = tut.getStudents();
            if (currentStudents.isEmpty()) {
                result = result + "Tutorial has no students!\n";
            } else {
                for (StudentEntity student : currentStudents) {
                    result = result + student.getMatricNumber() + " " + student.getName()
                            + " " + student.getEmail() + "\n";
                }
            }
        }
        return result;
    }