added problem 10 solution