fixing RotateMatrix to be a .groovy file