finish exercise 4.42