add polynom class. It was not tested.