add problem 7 solution