Implemented the reduce example without looking at the tutorial