refactoring code, adding totalScore field to the Student object and init it with 0