Create working code

I did not write this code, but it works. The problem is that I need to write code using the