solution problem 2