The two functions are added by prashant_pandey
Merge https://github.com/prashantsp951/ProgrammingAssignment2