solution problem 1