Assignment 2 - Add code for the two functions
Merge branch 'master' of https://github.com/kc-lin/ProgrammingAssignment2