Finished Exercise6