added a score method