finish exercise 39
finish exercise 40