Completed problem 7