Implement score

Issue #2