added problem 13 solution