Code for Chapter 10: Quadrature