Double click the flag to start. Drag the code blocks around. To activate them, click them! (Sorry, adding them to the "when green flag clicked" doesn't really work....)