Added ShakeDetector.java