Adding some more explanation about the code