solve problem #2