sample code in 1.3.4-procedures as returned values
solve exercise 1.40
solve exercise 1.41
solve exercise 1.42
solve exercise 1.43
solve exercise 1.44
solve ecercise 1.45
solve exercise 1.46