tried to work on the matrix rotation problem.