Scratch asks the user how many somersaults he should do. The answer to this is passed as a parameter to the somersault block and Scratch peforms the required number of somersaults.