Finished HW2 part 3 Fall 2013