added total method to score model