monomial: initial code for the new degree methods.