solve problem #10