solve problem 1
solve problem 2