add isRotation.java