exercise 10 has some problems