Filled in code for the two functions
 Please enter the commit message for your changes. Lines starting