Basic math classes and utils.