Finished homework 4.