I would take the absolute value of `self.degree` rather than the absolute value of what is returned by the function.