added problem 27 solution