added getScore method