bouncing balls in several different programming languages