Week 2 Homework

Homework exercise from book.