If you did everything step by step from a YouTube video, everything should have worked correctly.
Look at your code again, more carefully.