Examples 3 and 4: Bouncing Ball and Arrow | ScratchStats