Modularized quadratic equation added.