Assignment2 initial commit

Initial commit to my version of the functions needed for Assignment2.