Now the math challenge properly handles rotation.