Software code exercise 8.12.14