Refactored  some of my polynomials into functions.