Week 1 homework - exercise 1