Finished Problem 3