text: 
  
  export class ExamScorePresenter {
  
    constructor(examScoreboard) {
      this.examinees = examScoreboard.examinees;
      this.examQuestions = examScoreboard.examQuestions;
      this.crossAverage = examScoreboard.crossAverage;
      this.sumOfMaxScores = examScoreboard.sumOfMaxScores;
      this.studentRecords = examScoreboard.studentRecords;
    }
  
    get totalExaminees() {
      return this.examinees.length;
    }
  
    get problemIds() {
      return this.examQuestions.map(q => q.problemId);
    }
  
    get examineeRecords() {
      return this.examinees.map(examinee => ({
        studentName: examinee.name,
        studentScores: this.studentRecords[examinee.id].scores,
        studentTotalScore: this.studentRecords[examinee.id].totalScore
      }));
    }
  }
  