REFINE-Refine-an-algorithm-Iteration-1