Added exercise 9 and 10.