Added the commenting in the code