Finishing exercise 3.