added example of scoring on a whole array