completed funtions
Merge branch 'master' of https://github.com/git-mhaque/ProgrammingAssignment2