Finnished the matrix challenge.