Define env with matrix section