put matrices in examples in global scope