Use struct Mat