added 'score3' method which is uses more correct way of pattern matching