Finished Homework 2.