Finished exercises 9 and 10.