Modeling with Quadratic Functions