exercise 2.50 completed