Integrate Chapter 8 exercise 1