solution problem 8