Finished Problem 4.