solve problem #1