I also encountered a few problems with this tutorial, here is a solution that helped me.
I don’t know why the author of the lesson didn’t show it to us