Exercise 3 from Hackbright.