Solved set 1, challenge 7.