exercise 1.40 done
exercise 1.41 done