add Matrix method