polynomial term class