class Score - refactoring