Exercise 3.

Here is my pull request for exercise 3. Thanks!