Exercise 16 - Additional way of solving Extra Credit 3