swapped exercise 9 with my own version