It works

I would like to improve it, i plan on adding the whole code into a while loop