finish exercise 5.6