Finished Problem 6