finish ml_ex_1