this is exercise 8 from the end of the precourse