Finished Program 6.