Job's done. I will change the variables' name and some other things