changed the coefficient for second-order term to 2, instead of 3