updated quadratic example