Fixed a typo
Using sum() instead of reduce