solution problem4