Code Editor : sg_compare_and_write