Revised BouncingBallsInBoxExample.