Week 2 challenge to rewrite Inject