Week 5: Task 1. Rewrite the Reduce and Inject methods.