added problem 17 solution.