Case study: numerical integration