Added exercise 8 solution