CMA2 function

CMA2 and CMA4 constructors.