added method to calculate the total of a score