Bouncing in a gravity field