test code: fun with polynomials