Create magnetRotate.cs