add score method.