Finished homework 1