Use built-in reduce