implemented make_min for Problem 6-3 c