Adding problem #16 solution.