added mex file example