Wrote the two functions as described by the assignment prompt. Also wrote descriptions for the functions.