Add generator polynominal class