support for adding polynomial classes