############## ####################################################### # this is example 4.12.11 in the book ######################################################################