Commentated the code