Following the instructions for peer assignment I included my functions in the file.