Structured the code further and added comments