Add an extension class for Math