algorithm is done

an example is added