Homework 7 with everything functioning including nice comments and pretty code