Finished homework 2.