Changed Z row from vector to matrix