exercises 2.40 and 2.41
exercise 2.41
ex 2.40