This is a shakeDetector demo of a class. And it is an useful study demo to study a kind of listener.