Credit risk example.
Refactor reduce to scan.