solution problem 7