This was taken from the scratch web site tutorial at: http://kata.coderdojo.com/index.php?title=Scratch-Tutorial2