Began and finished Problem 6