Implement a scoring mechanism.