Finished homework 5.