solve problem 1