#8 first draft of Perturbation algo