added ShakeDetector java