Hi! Look inside to understand why the code works. BTW, I did write something on the slides, so you can most certainly view that. ;)
Feel free to backpack the code inside if it helps!