getScore method added