This is the code I wrote during my tutorial on YouTube