Adding explanation comments per line.
Hopefully this will help someone in the class understand the steps