fixed mistakes in quadratic definition of C4 model, note this still wont work, work in progress