Replaced everything with his code

It works this way. Now I can change it to be my own code