cleaned Polynomial class