Finished working on the rotation of the quadrants