Add matrix exercise