finish exercise 3.2