Final on the homework pull request

Finished up the homework. Didn't get a chance to refactor some of the code to take a method but I guess that would be the next logical step in order to reduce the amount of code on the main.erb.