exercise 3.50 done