Functions for Programming Assignment 2

I have changed the files on my local computer and now I am uploading the
new version.