Implementation of BallClock for exercise