Submit for assignment 2

I added functions to the file and commented on their functionality.