exercise 5.7 is done