Finished putting all things for assignment 3 in functions. Still needed: comments and command line input.