Finished problem 7.10