Finish exercise 5.6