polynomial class