Create reusable extension module
Use new extension module for math extensions