Matrix for Ex2