Completed problem 7.