Final solution with proper comments added
Merge branch 'master' of https://github.com/godlyraghu/ProgrammingAssignment2