finished problem #10