Bouncing ball dynamics