Add matrix for problem 4