<?xml version="1.0" encoding="UTF-8"?>
<otrunk id="2767fe20-6c7d-11dc-8314-0800200c9a66">
  <imports>
    <import class="org.concord.data.state.OTDataStore" />
    <import class="org.concord.data.state.OTDataChannelDescription" />
    <import class="org.concord.data.state.OTDataField" />
    <import class="org.concord.data.state.OTDataTable" />
    <import class="org.concord.datagraph.state.OTDataGraph" />
    <import class="org.concord.datagraph.state.OTDataAxis" />
    <import class="org.concord.datagraph.state.OTDataGraphable" />
    <import class="org.concord.datagraph.state.OTDataCollector" />
    <import class="org.concord.datagraph.state.OTMultiDataGraph" />
    <import class="org.concord.datagraph.state.OTPluginView" />
    <import class="org.concord.datagraph.state.OTDataBarGraphable" />
    <import class="org.concord.framework.otrunk.view.OTFrame" />
    <import class="org.concord.framework.otrunk.wrapper.OTBlob" />
    <import class="org.concord.graph.util.state.OTDrawingTool" />
    <import class="org.concord.graph.util.state.OTDrawingStamp" />
    <import class="org.concord.graph.util.state.OTDrawingImageIcon" />
    <import class="org.concord.graph.util.state.OTDrawingShape" />
    <import class="org.concord.graph.util.state.OTDrawingTool2" />
    <import class="org.concord.graph.util.state.OTPointTextLabel" />
    <import class="org.concord.otrunk.OTInclude" />
    <import class="org.concord.otrunk.OTSystem" />
    <import class="org.concord.otrunk.browser.mozswing.OTMozSwing" />
    <import class="org.concord.otrunk.overlay.OTOverlay" />
    <import class="org.concord.otrunk.script.ui.OTScriptObject" />
    <import class="org.concord.otrunk.script.ui.OTScriptVariable" />
    <import class="org.concord.otrunk.script.ui.OTScriptVariableComponent" />
    <import class="org.concord.otrunk.script.ui.OTScriptVariableView" />
    <import class="org.concord.otrunk.script.js.OTJavascript" />
    <import class="org.concord.otrunk.script.OTScriptEngineBundle" />
    <import class="org.concord.otrunk.script.OTScriptEngineEntry" />
    <import class="org.concord.otrunk.udl.OTAuthorNote" />
    <import class="org.concord.otrunk.udl.OTUDLLabPage" />
    <import class="org.concord.otrunk.udl.coach.OTUDLCoach" />
    <import class="org.concord.otrunk.udl.coach.OTUDLCoachGroup" />
    <import class="org.concord.otrunk.udl.coach.OTUDLCoachStatement" />
    <import class="org.concord.otrunk.udl.OTUDLMenuRule" />
    <import class="org.concord.otrunk.udl.document.OTDefinition" />
    <import class="org.concord.otrunk.udl.document.OTDefinitionList" />
    <import class="org.concord.otrunk.udl.document.OTDefinitionManager" />
    <import class="org.concord.otrunk.udl.document.OTGlossary" />
    <import class="org.concord.otrunk.udl.document.OTUDLCompoundDoc" />
    <import class="org.concord.otrunk.udl.document.OTUDLDocumentViewConfig" />
    <import class="org.concord.otrunk.graph.OTDataCollectorViewConfig" />
    <import class="org.concord.otrunk.udl.question.OTUDLQuestion" />
    <import class="org.concord.otrunk.udl.question.OTUDLLeveledQuestions" />
    <import class="org.concord.otrunk.udl.question.OTUDLQuestionViewConfig" />
    <import class="org.concord.otrunk.udl3.OTUDLMenu" />
    <import class="org.concord.otrunk.udl3.OTUDLContainer" />
    <import class="org.concord.otrunk.udl3.OTUDLSection" />
    <import class="org.concord.otrunk.ui.OTButton" />
    <import class="org.concord.otrunk.ui.OTCardContainer" />
    <import class="org.concord.otrunk.ui.OTChoice" />
    <import class="org.concord.otrunk.ui.OTChoiceMultiple" />
    <import class="org.concord.otrunk.ui.OTCurriculumUnit" />
    <import class="org.concord.otrunk.ui.OTImage" />
    <import class="org.concord.otrunk.ui.OTImageMap" />
    <import class="org.concord.otrunk.ui.OTLayerContainer" />
    <import class="org.concord.otrunk.ui.OTModeSwitcher" />
    <import class="org.concord.otrunk.ui.OTText" />
    <import class="org.concord.otrunk.ui.OTPlacement" />
    <import class="org.concord.otrunk.ui.OTPlacementContainer" />
    <import class="org.concord.otrunk.ui.snapshot.OTSnapshot" />
    <import class="org.concord.otrunk.ui.snapshot.OTSnapshotButton" />
    <import class="org.concord.otrunk.ui.snapshot.OTSnapshotAlbum" />
    <import class="org.concord.otrunk.ui.snapshot.OTSnapshotChooser" />
    <import class="org.concord.otrunk.ui.swing.OTChoiceViewConfig" />
    <import class="org.concord.otrunk.util.OTSharingBundle" />
    <import class="org.concord.otrunk.view.OTObjectEditViewConfig" />
    <import class="org.concord.otrunk.view.OTViewChild" />
    <import class="org.concord.otrunk.view.OTViewEntry" />
    <import class="org.concord.otrunk.view.OTViewBundle" />
    <import class="org.concord.otrunk.view.OTViewMode" />
    <import class="org.concord.otrunk.view.document.OTCompoundDoc" />
    <import class="org.concord.otrunk.view.document.OTCssText" />
    <import class="org.concord.otrunk.view.prototype.OTPrototypeViewEntry" />
    <import class="org.concord.otrunk.view.prototype.OTPrototypeEventController" />
    <import class="org.concord.otrunk.view.prototype.OTPrototypeMapEntry" />
    <import class="org.concord.otrunknl4.OTNLogoModel" />
    <import class="org.concord.sensor.state.OTDeviceConfig" />
    <import class="org.concord.sensor.state.OTExperimentRequest" />
    <import class="org.concord.sensor.state.OTInterfaceManager" />
    <import class="org.concord.sensor.state.OTSensorDataProxy" />
    <import class="org.concord.sensor.state.OTSensorRequest" />
    <import class="org.concord.sensor.state.OTZeroSensor" />
    <import class="org.concord.otrunk.ui.menu.OTNavBar" />
    <import class="org.concord.datagraph.state.OTDataPointLabel" />
    <import class="org.concord.otrunk.udl.OTZoom" />
    <import class="org.concord.otrunk.udl.OTZoomTransform" />
    <import class="org.concord.otrunkmw.OTModelerPage" />
    <import class="org.concord.otrunkmw.OTMwDataProducer" />
    <import class="org.concord.otrunkmw.OTMwChannelData" />
    <import class="org.concord.otrunk.ui.OTSoundPlayer" />
    <import class="org.concord.otrunk.util.OTReference" />
    <import class="org.concord.smartgraph.OTSmartGraphTool" />
    <import class="org.concord.otrunk.script.ui.OTScriptButton" />
    <import class="org.concord.otrunk.script.jruby.OTJRuby" />
    <import class="org.concord.otrunk.script.ui.OTScriptVariableRealObject" />
    <import class="org.concord.framework.otrunk.wrapper.OTInt" />
    <import class="org.concord.framework.otrunk.wrapper.OTBoolean" />
  </imports>
  <objects>
    <OTSystem local_id="system">
      <includes>
        <OTInclude href="http://continuum.concord.org/otrunk/examples/LOOPS/global-imports/loops-view-bundle.otml" />
      </includes>
      <bundles>
        <object refid="8d880970-c22a-11dc-95ff-0800200c9a66" />
        <OTScriptEngineBundle>
          <engines>
            <OTScriptEngineEntry objectClass="org.concord.otrunk.script.jruby.OTJRuby" engineClass="org.concord.otrunk.script.jruby.OTJRubyEngine" />
            <OTScriptEngineEntry objectClass="org.concord.otrunk.script.js.OTJavascript" engineClass="org.concord.otrunk.script.js.OTJavascriptEngine" />
          </engines>
        </OTScriptEngineBundle>
        <OTSharingBundle>
          <sharedObjects>
            <OTSmartGraphTool id="9c547fc6-ba56-11dd-919b-2f904698bdc2" name="Data graph_smart">
              <dataCollector>
                <OTDataCollector id="815a49b9-ba54-11dd-919b-2f904698bdc2" name="Data graph" title="Juan's Morning Jog" autoTick="false" xTickInterval="1" yTickInterval="200" showControlBar="false">
                  <source>
                    <OTDataGraphable name="Data Graph" connectPoints="true" controllable="false" yColumn="1" drawMarks="false" color="16711680" xColumn="0" lineWidth="2.0" visible="true">
                      <dataStore>
                        <OTDataStore numberChannels="2">
                          <values>
                            <float>0.0</float>
                            <float>0.0</float>
                            <float>1.0</float>
                            <float>200.0</float>
                            <float>2.0</float>
                            <float>400.0</float>
                            <float>3.0</float>
                            <float>600.0</float>
                            <float>4.0</float>
                            <float>800.0</float>
                            <float>5.0</float>
                            <float>1000.0</float>
                            <float>6.0</float>
                            <float>1200.0</float>
                            <float>7.0</float>
                            <float>1400.0</float>
                            <float>8.0</float>
                            <float>1600.0</float>
                            <float>9.0</float>
                            <float>1600.0</float>
                            <float>10.0</float>
                            <float>1600.0</float>
                            <float>11.0</float>
                            <float>1900.0</float>
                            <float>12.0</float>
                            <float>2200.0</float>
                            <float>13.0</float>
                            <float>2500.0</float>
                            <float>14.0</float>
                            <float>2800.0</float>
                          </values>
                        </OTDataStore>
                      </dataStore>
                    </OTDataGraphable>
                  </source>
                  <xDataAxis>
                    <OTDataAxis max="16.0" units="minutes" min="0.0" label="Time" labelFormat="None" />
                  </xDataAxis>
                  <yDataAxis>
                    <OTDataAxis max="3000.0" units="meters" min="-0.0" label="Distance" labelFormat="None" />
                  </yDataAxis>
                  <labels>
                    <OTDataPointLabel x="Infinity" y="Infinity" color="0xffffbe" fontSize="10" text="Data Point" />
                    <OTDataPointLabel x="Infinity" y="Infinity" color="0xffffbe" fontSize="10" text="Data Point" />
                    <OTDataPointLabel x="Infinity" y="Infinity" color="0xffffbe" fontSize="10" text="Data Point" />
                    <OTDataPointLabel x="Infinity" y="Infinity" color="0xffffbe" fontSize="10" text="Data Point" />
                  </labels>
                </OTDataCollector>
              </dataCollector>
            </OTSmartGraphTool>
            <OTSmartGraphTool id="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" name="smart">
              <dataCollector>
                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
              </dataCollector>
            </OTSmartGraphTool>
          </sharedObjects>
        </OTSharingBundle>
        <OTInterfaceManager>
          <deviceConfigs>
            <OTDeviceConfig configString="none" deviceId="10" />
          </deviceConfigs>
        </OTInterfaceManager>
      </bundles>
      <overlays>
        <object refid="6cc8e2b0-c44e-11dc-95ff-0800200c9a66" />
        <object refid="b5d8b4a0-db35-11dc-95ff-0800200c9a66" />
        <OTOverlay>
          <deltaObjectMap>
            <entry key="${authoring_script.js}">
              <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/student_script.js" />
            </entry>
          </deltaObjectMap>
        </OTOverlay>
      </overlays>
      <root>
        <OTCurriculumUnit version="2" name="LOOPS Activity">
          <activity>
            <OTUDLSection local_id="section_1">
              <header>
                <OTCompoundDoc id="2767fe20-6c7d-11dc-8314-0800200c9a66!/section_1/header" showEditBar="false">
                  <bodyText>
                    <div class="title">Juan's Morning Jog</div>
                  </bodyText>
                </OTCompoundDoc>
              </header>
              <content>
                <OTCardContainer local_id="activity-card-container" contentsMayScroll="true" loadViewOnlyOnDemand="true">
                  <cards>
                    <OTCompoundDoc local_id="page-1" name="1">
                      <bodyText>
                        <div class="buffer">
                          <div class="border">
                            <div class="body">
                              <div class="subtitle">A graph of Juan's morning jog</div>
                              Juan is on a morning jog. The distance that Juan runs during the 
          first 20 minutes is represented in this graph.
                              <br />
                              <br />
                              <table width="100%">
                                <tr>
                                  <td width="30%" valign="top">
                                    <div style="border-right-width: 1px; margin-left: 5px; margin-right: 5px; border-style: solid; margin-top: 5px; padding-top: 2px; border-top-width: 1px; border-bottom-width: 1px; margin-bottom: 5px; padding-right: 2px; padding-bottom: 2px; border-color: black; padding-left: 2px; border-left-width: 1px">
                                      <object refid="90f2e71f-ba54-11dd-919b-2f904698bdc2" />
                                      <br />
                                      <object viewid="29dc5ef0-c453-11dc-95ff-0800200c9a66" refid="90f2e720-ba54-11dd-919b-2f904698bdc2" />
                                    </div>
                                  </td>
                                  <td>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                    <br />
                                    <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                  </td>
                                </tr>
                              </table>
                            </div>
                          </div>
                        </div>
                      </bodyText>
                      <documentRefs>
                        <OTCardContainer id="90f2e71f-ba54-11dd-919b-2f904698bdc2" contentsMayScroll="false" loadViewOnlyOnDemand="true" closeViewOnExit="true" cardsAreTopLevelContainers="false">
                          <cards>
                            <OTUDLCompoundDoc id="90f35c51-ba54-11dd-919b-2f904698bdc2">
                              <documentRefs>
                                <OTUDLQuestion id="9d3f86e9-ba57-11dd-8d5b-2b9b224013a9" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>1. At what rate of speed is Juan running between 4 minutes and 6 minutes (in meters per minute)?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="b74d24d1-ba57-11dd-8d5b-2b9b224013a9" text="" />
                                        <OTScriptButton id="b74d24d2-ba57-11dd-8d5b-2b9b224013a9" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt; 190.0..210.0, :axis =&gt; :x },
  
  # Optional: specify the highlight_range if it is different than the correct_range
  # :highlight_range =&gt; { :range =&gt; 5..30, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "Remember that on a distance versus time graph, speed is represented by the slope of the line. ", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct.  How many meters did Juan jog between 4 and 6 minutes?", 
  # { :text =&gt; "That's still not correct.", 

    :highlight_region =&gt; true },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; true }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="b74de82b-ba57-11dd-8d5b-2b9b224013a9" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="b74de82c-ba57-11dd-8d5b-2b9b224013a9" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="true" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="9d3f86e9-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="b74d24d1-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="b74d24d3-ba57-11dd-8d5b-2b9b224013a9" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="b74d24d1-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="b74d24d2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="b74d24d2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="b74de82b-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="b74de82c-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="b74d24d1-ba57-11dd-8d5b-2b9b224013a9" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="b74d24d2-ba57-11dd-8d5b-2b9b224013a9" />
                                            </td>
                                            <td width="100px">
                                              <object refid="b74d24d3-ba57-11dd-8d5b-2b9b224013a9" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="9d3f86e9-ba57-11dd-8d5b-2b9b224013a9" />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="971d45a2-ba54-11dd-919b-2f904698bdc2" name="%971d45a2-ba54-11dd-919b-2f904698bdc2" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="80caccda-ba5a-11dd-ba76-5391c168370f" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>2. How far has Juan run before he stops and takes a break (in meters)?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="94be5f03-ba5a-11dd-ba76-5391c168370f" text="" />
                                        <OTScriptButton id="94be5f04-ba5a-11dd-ba76-5391c168370f" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt; 1590.0..1610.0, :axis =&gt; :y },
  
  # Optional: specify the highlight_range if it is different than the correct_range
   :highlight_range =&gt; { :range =&gt; 0..8, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "First identify the time when Juan stops, and then determine how far he went. ", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct. The graphis highlighted up to the time Juan stops.", 
  # { :text =&gt; "That's still not correct. MESSAGE ABOUT Y-AXIS.", 
    :highlight_region =&gt; true },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; true }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="94bf707d-ba5a-11dd-ba76-5391c168370f" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="94bf978e-ba5a-11dd-ba76-5391c168370f" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="true" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="80caccda-ba5a-11dd-ba76-5391c168370f" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="94be5f03-ba5a-11dd-ba76-5391c168370f" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="94be5f05-ba5a-11dd-ba76-5391c168370f" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="94be5f03-ba5a-11dd-ba76-5391c168370f" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="94be5f04-ba5a-11dd-ba76-5391c168370f" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="94be5f04-ba5a-11dd-ba76-5391c168370f" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="94bf707d-ba5a-11dd-ba76-5391c168370f" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="94bf978e-ba5a-11dd-ba76-5391c168370f" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="94be5f03-ba5a-11dd-ba76-5391c168370f" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="94be5f04-ba5a-11dd-ba76-5391c168370f" />
                                            </td>
                                            <td width="100px">
                                              <object refid="94be5f05-ba5a-11dd-ba76-5391c168370f" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="80caccda-ba5a-11dd-ba76-5391c168370f" />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="c9cb03d6-bb17-11dd-b5fe-4fe1b6f4430d" name="%c9cb03d6-bb17-11dd-b5fe-4fe1b6f4430d" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="07e3c62d-bb18-11dd-b5fe-4fe1b6f4430d" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>3. At what time does Juan resume jogging after taking a break?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="26dcd9f5-bb18-11dd-b5fe-4fe1b6f4430d" text="" />
                                        <OTScriptButton id="26dcd9f6-bb18-11dd-b5fe-4fe1b6f4430d" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
   :correct_range =&gt; { :range =&gt; 9.9..10.1, :axis =&gt; :x },
  
  # Optional: specify the highlight_range if it is different than the correct_range
   :highlight_range =&gt; { :range =&gt; 8..10, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "That's not correct. First find where Juan is not moving. Then determine when he starts moving again.", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct. A horizontal line (the highlighted region) on a distance-time graph represents an object that is not moving.", 
  # { :text =&gt; "That's still not correct. Read the value of the highlighted part of the graph from the x-axis along the bottom.", 

    :highlight_region =&gt; true },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; true }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="26ddc45f-bb18-11dd-b5fe-4fe1b6f4430d" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="26ddc460-bb18-11dd-b5fe-4fe1b6f4430d" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="false" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="07e3c62d-bb18-11dd-b5fe-4fe1b6f4430d" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="26dcd9f5-bb18-11dd-b5fe-4fe1b6f4430d" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="26dcd9f7-bb18-11dd-b5fe-4fe1b6f4430d" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="26dcd9f5-bb18-11dd-b5fe-4fe1b6f4430d" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="26dcd9f6-bb18-11dd-b5fe-4fe1b6f4430d" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="26dcd9f6-bb18-11dd-b5fe-4fe1b6f4430d" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="26ddc45f-bb18-11dd-b5fe-4fe1b6f4430d" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="26ddc460-bb18-11dd-b5fe-4fe1b6f4430d" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="26dcd9f5-bb18-11dd-b5fe-4fe1b6f4430d" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="26dcd9f6-bb18-11dd-b5fe-4fe1b6f4430d" />
                                            </td>
                                            <td width="100px">
                                              <object refid="26dcd9f7-bb18-11dd-b5fe-4fe1b6f4430d" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="07e3c62d-bb18-11dd-b5fe-4fe1b6f4430d" />
                                <br />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="fc702fbf-bb19-11dd-985e-21bbafda3df9" name="%fc702fbf-bb19-11dd-985e-21bbafda3df9" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="24971e06-bb1a-11dd-985e-21bbafda3df9" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>4. What distance does Juan run in the first 6 minutes of his jog?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="37c2f44e-bb1a-11dd-985e-21bbafda3df9" text="" />
                                        <OTScriptButton id="37c2f44f-bb1a-11dd-985e-21bbafda3df9" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt; 1150.0..1250.0, :axis =&gt; :y },
  
  # Optional: specify the highlight_range if it is different than the correct_range
  :highlight_range =&gt; { :range =&gt; 0..6, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "That's not correct. Carefully read up from 6 minutes and then over to the corresponding distance on the y-axis.", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct. Read the value at the end of the highlighted part of the graph from the y-axis on the left.", 
  # { :text =&gt; "That's still not correct. Read the value of the highlighted part of the graph from the x-axis along the bottom.", 

    :highlight_region =&gt; true },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; true }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="37c3b7a8-bb1a-11dd-985e-21bbafda3df9" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="37c3b7a9-bb1a-11dd-985e-21bbafda3df9" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="false" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="24971e06-bb1a-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="37c2f44e-bb1a-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="37c2f450-bb1a-11dd-985e-21bbafda3df9" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="37c2f44e-bb1a-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="37c2f44f-bb1a-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="37c2f44f-bb1a-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="37c3b7a8-bb1a-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="37c3b7a9-bb1a-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="37c2f44e-bb1a-11dd-985e-21bbafda3df9" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="37c2f44f-bb1a-11dd-985e-21bbafda3df9" />
                                            </td>
                                            <td width="100px">
                                              <object refid="37c2f450-bb1a-11dd-985e-21bbafda3df9" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="24971e06-bb1a-11dd-985e-21bbafda3df9" />
                                <br />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="ead16cec-bb1a-11dd-985e-21bbafda3df9" name="%ead16cec-bb1a-11dd-985e-21bbafda3df9" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="0aabe001-bb1b-11dd-985e-21bbafda3df9" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>5. What total distance does Juan run on his morning jog?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="1a8a38f9-bb1b-11dd-985e-21bbafda3df9" />
                                        <OTScriptButton id="1a8a38fa-bb1b-11dd-985e-21bbafda3df9" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt; 2700.0..2900.0, :axis =&gt; :y },
  
  # Optional: specify the highlight_range if it is different than the correct_range
  # :highlight_range =&gt; { :range =&gt; 5..30, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "That's not correct. Juan ran for a total of 14 minutes.  Find his distance at time = 14 minutes.", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct. Read the value at the end of the graph from the y-axis on the left.", 
  # { :text =&gt; "That's still not correct. Read the value of the highlighted part of the graph from the x-axis along the bottom.", 

    :highlight_region =&gt; false },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; true }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="1a8caa03-bb1b-11dd-985e-21bbafda3df9" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="1a8caa04-bb1b-11dd-985e-21bbafda3df9" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="0aabe001-bb1b-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="1a8a38f9-bb1b-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="1a8a38fb-bb1b-11dd-985e-21bbafda3df9" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="1a8a38f9-bb1b-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="1a8a38fa-bb1b-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="1a8a38fa-bb1b-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="1a8caa03-bb1b-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="1a8caa04-bb1b-11dd-985e-21bbafda3df9" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="1a8a38f9-bb1b-11dd-985e-21bbafda3df9" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="1a8a38fa-bb1b-11dd-985e-21bbafda3df9" />
                                            </td>
                                            <td width="100px">
                                              <object refid="1a8a38fb-bb1b-11dd-985e-21bbafda3df9" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="0aabe001-bb1b-11dd-985e-21bbafda3df9" />
                                <br />
                                <br />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="063f929e-ba5c-11dd-8eaf-176da169abd9" name="%063f929e-ba5c-11dd-8eaf-176da169abd9" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="2b955f85-ba5c-11dd-8eaf-176da169abd9" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>6.  Label the section of the graph showing where Juan is running the fastest.</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph label" showEditBar="false">
                                      <documentRefs>
                                        <OTText />
                                        <OTScriptButton id="3464d133-ba5d-11dd-8eaf-176da169abd9" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_label_script_template.rb" script="# Original template file: scripts/smart_graph_label_script_template.rb&#xA;&#xA;# Setting the DEBUG constant to true will generate additional &#xA;# debugging information in the Java console.&#xA;# DEBUG=true&#xA;&#xA;eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s&#xA;eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s&#xA;&#xA;# Edit the values in the response_key Hash below to customize the&#xA;# Smart Graph Query responses&#xA;&#xA;response_key = {&#xA;  # Optional: You can specify the prompt in the script, this will override the &#xA;  # value entered in the question object.&#xA;  # :prompt =&gt; &quot;Please answer this question: how much?&quot;,&#xA;  &#xA;  # Specify the response_type as :label when the&#xA;  # learner responds to the question by entering a data point label. &#xA;  :response_type =&gt; :label,&#xA;  &#xA;  # The value for a :range key can be any of the following:&#xA;  #&#xA;  #   a Ruby Range object&#xA;  #&#xA;  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;&#xA;  #&#xA;  #   The values for start_of_range and end_of_range can be&#xA;  #   Fixnums (Integers) or Floats. Specify a floating point &#xA;  #   by including a decimal point and at least one one digit&#xA;  #   to the right of the decimal point.&#xA;  #&#xA;  #   Example: 30.0..31.5&#xA;  #&#xA;  #   a Ruby number (Fixnum or Float)&#xA;  #&#xA;  #   Examples: 26, 30.0&#xA;  #&#xA;  # valid axis values are :x and :y&#xA;  #&#xA;  :correct_range =&gt; { :range =&gt; 10.0..14.0, :axis =&gt; :x },&#xA;  &#xA;  # Optional: specify the highlight_range if it is different than the correct_range&#xA;  # :highlight_range =&gt; { :range =&gt; 5..30, :axis =&gt; :x },&#xA;  :no_answer_entered =&gt; &#xA;    { :text =&gt; &quot;Use the label tool to add a label to the graph.&quot;, :highlight_region =&gt; false  },&#xA;  :correct =&gt; &#xA;    { :text =&gt; &quot;Correct! Go on to the next page.&quot;, :highlight_region =&gt; false },&#xA;  :first_wrong_answer =&gt; &#xA;    { :text =&gt; &quot;That's not correct. Remember that on a distance versus time graph, speed is represented by the slope of the line.&quot;, :highlight_region =&gt; false  },&#xA;  :second_wrong_answer =&gt; &#xA;    { :text =&gt; &quot;That's still not correct. A steeper slope represents a greater speed.&quot;, :highlight_region =&gt; true },&#xA;  :multiple_wrong_answers =&gt; &#xA;    { :text =&gt; &quot;That's still not correct. &quot;, :highlight_region =&gt; true }&#xA;}&#xA;&#xA;# Create a new SmartGraphRangeResponse object with your response_key and the &#xA;# global variables created by the Smart Graph Label type Question input.&#xA;@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question)&#xA;&#xA;# When the &quot;Check Answer&quot; button is clicked the clicked method&#xA;# of the @smart_graph_range_response object will be called.&#xA;def self.clicked&#xA;  @smart_graph_range_response.clicked&#xA;end&#xA;" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="3464d134-ba5d-11dd-8eaf-176da169abd9/scriptVariables[2]/reference" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="3464d134-ba5d-11dd-8eaf-176da169abd9/scriptVariables[3]/reference" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="false" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="2b955f85-ba5c-11dd-8eaf-176da169abd9" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="3464d134-ba5d-11dd-8eaf-176da169abd9" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="3464d133-ba5d-11dd-8eaf-176da169abd9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="3464d133-ba5d-11dd-8eaf-176da169abd9" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="3464d134-ba5d-11dd-8eaf-176da169abd9/scriptVariables[2]/reference" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="3464d134-ba5d-11dd-8eaf-176da169abd9/scriptVariables[3]/reference" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="3464d133-ba5d-11dd-8eaf-176da169abd9" />
                                            </td>
                                            <td width="100px">
                                              <object refid="3464d134-ba5d-11dd-8eaf-176da169abd9" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="2b955f85-ba5c-11dd-8eaf-176da169abd9" />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="ce56fc8b-c793-11dd-a63a-a77e012d7714" name="%ce56fc8b-c793-11dd-a63a-a77e012d7714" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="e1a83522-c793-11dd-a63a-a77e012d7714" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>7. If Juan maintained the same speed as in the first 8 min, how many minutes would it take him to run 4000 m?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="0b61aa4a-c794-11dd-a63a-a77e012d7714" text="" />
                                        <OTScriptButton id="0b61aa4b-c794-11dd-a63a-a77e012d7714" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt; 19.9..20.1, :axis =&gt; :x },
  
  # Optional: specify the highlight_range if it is different than the correct_range
  # :highlight_range =&gt; { :range =&gt; 5..30, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "That's not correct. First calculate Juan's speed during the first 8 seconds.", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct.  The time it took is equal to total distance divided by his speed.", 
  # { :text =&gt; "That's still not correct. Read the value of the highlighted part of the graph from the x-axis along the bottom.", 

    :highlight_region =&gt; false },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; false }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="0b626da4-c794-11dd-a63a-a77e012d7714" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="0b626da5-c794-11dd-a63a-a77e012d7714" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="false" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="e1a83522-c793-11dd-a63a-a77e012d7714" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="0b61aa4a-c794-11dd-a63a-a77e012d7714" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="0b61aa4c-c794-11dd-a63a-a77e012d7714" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="0b61aa4a-c794-11dd-a63a-a77e012d7714" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="0b61aa4b-c794-11dd-a63a-a77e012d7714" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="0b61aa4b-c794-11dd-a63a-a77e012d7714" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="0b626da4-c794-11dd-a63a-a77e012d7714" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="0b626da5-c794-11dd-a63a-a77e012d7714" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="0b61aa4a-c794-11dd-a63a-a77e012d7714" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="0b61aa4b-c794-11dd-a63a-a77e012d7714" />
                                            </td>
                                            <td width="100px">
                                              <object refid="0b61aa4c-c794-11dd-a63a-a77e012d7714" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="e1a83522-c793-11dd-a63a-a77e012d7714" />
                                <br />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="cf6afd8c-c796-11dd-af51-591f2b2328c9" name="%cf6afd8c-c796-11dd-af51-591f2b2328c9" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="da8e8d93-c796-11dd-af51-591f2b2328c9" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>8. What is Juan’s average speed for the entire run?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="07c06aa6-c798-11dd-b0c7-451b0f9f96e7" text="" />
                                        <OTScriptButton id="07c06aa7-c798-11dd-b0c7-451b0f9f96e7" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt;190.0..210.0, :axis =&gt; :x },
  
  # Optional: specify the highlight_range if it is different than the correct_range
   :highlight_range =&gt; { :range =&gt; 0..14, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "That's not correct. Average speed is equal to total distance divided by total time.", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct. Juan's total run is highlighted. ", 
  # { :text =&gt; "That's still not correct. Read the value of the highlighted part of the graph from the x-axis along the bottom.", 

    :highlight_region =&gt; true },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; false }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="07c1ca40-c798-11dd-b0c7-451b0f9f96e7" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="07c1ca41-c798-11dd-b0c7-451b0f9f96e7" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="true" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="da8e8d93-c796-11dd-af51-591f2b2328c9" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="07c06aa6-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="07c06aa8-c798-11dd-b0c7-451b0f9f96e7" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="07c06aa6-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="07c06aa7-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="07c06aa7-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="07c1ca40-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="07c1ca41-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="07c06aa6-c798-11dd-b0c7-451b0f9f96e7" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="07c06aa7-c798-11dd-b0c7-451b0f9f96e7" />
                                            </td>
                                            <td width="100px">
                                              <object refid="07c06aa8-c798-11dd-b0c7-451b0f9f96e7" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="da8e8d93-c796-11dd-af51-591f2b2328c9" />
                                <br />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="5b0651aa-c798-11dd-b0c7-451b0f9f96e7" name="%5b0651aa-c798-11dd-b0c7-451b0f9f96e7" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="611475a1-c798-11dd-b0c7-451b0f9f96e7" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>9. At what time has Juan run 400 meters?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="7fee8fb9-c798-11dd-b0c7-451b0f9f96e7" />
                                        <OTScriptButton id="7fee8fba-c798-11dd-b0c7-451b0f9f96e7" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt; 1.9..2.1, :axis =&gt; :x },
  
  # Optional: specify the highlight_range if it is different than the correct_range
  # :highlight_range =&gt; { :range =&gt; 5..30, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "That's not correct. Carefully find 400 meters and then read down to the time.", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
  #  { :text =&gt; "That's still not correct. Find the time at the end of the highlighted part of the graph", 
   { :text =&gt; "That's still not correct. Read the value of the highlighted part of the graph from the x-axis along the bottom.", 

    :highlight_region =&gt; true },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; true }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="7fef7a23-c798-11dd-b0c7-451b0f9f96e7" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="7fef7a24-c798-11dd-b0c7-451b0f9f96e7" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="611475a1-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="7fee8fb9-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="7fee8fbb-c798-11dd-b0c7-451b0f9f96e7" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="7fee8fb9-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="7fee8fba-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="7fee8fba-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="7fef7a23-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="7fef7a24-c798-11dd-b0c7-451b0f9f96e7" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="7fee8fb9-c798-11dd-b0c7-451b0f9f96e7" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="7fee8fba-c798-11dd-b0c7-451b0f9f96e7" />
                                            </td>
                                            <td width="100px">
                                              <object refid="7fee8fbb-c798-11dd-b0c7-451b0f9f96e7" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="611475a1-c798-11dd-b0c7-451b0f9f96e7" />
                                <br />
                              </bodyText>
                            </OTUDLCompoundDoc>
                            <OTUDLCompoundDoc id="941216ef-c799-11dd-a1e8-5fb63aab74d7" name="%941216ef-c799-11dd-a1e8-5fb63aab74d7" showEditBar="true">
                              <documentRefs>
                                <OTUDLQuestion id="9b6a2006-c799-11dd-a1e8-5fb63aab74d7" name="Question" showConvertButton="false">
                                  <prompt>
                                    <OTCompoundDoc>
                                      <bodyText>10. What is the slope of the middle (flat) section of the graph?</bodyText>
                                    </OTCompoundDoc>
                                  </prompt>
                                  <input>
                                    <OTCompoundDoc name="Smart graph number" showEditBar="false">
                                      <documentRefs>
                                        <OTText id="b7bc089e-c799-11dd-a1e8-5fb63aab74d7" text="" />
                                        <OTScriptButton id="b7bc089f-c799-11dd-a1e8-5fb63aab74d7" text="Check answer">
                                          <script>
                                            <OTJRuby src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_number_script_template.rb">
                                              <script># Original template file: scripts/smart_graph_number_script_template.rb

# Setting the DEBUG constant to true will generate additional 
# debugging information in the Java console.
# DEBUG=true

eval Java::JavaLang::String.new($otrunk_ruby_script_tools.src).to_s
eval Java::JavaLang::String.new($smart_graph_range_response.src).to_s

# Edit the values in the response_key Hash below to customize the
# Smart Graph Query responses

response_key = {
  # Optional: You can specify the prompt in the script, this will override the 
  # value entered in the question object.
  # :prompt =&gt; "Please answer this question: how much?",
  
  # Specify the response_type as :number when the
  # learner responds to the question by entering a number.
  :response_type =&gt; :number,
  
  # The value for a :range key can be any of the following:
  #
  #   a Ruby Range object
  #
  #     &lt;start_of_range&gt;..&lt;end_of_range&gt;
  #
  #   The values for start_of_range and end_of_range can be
  #   Fixnums (Integers) or Floats. Specify a floating point 
  #   by including a decimal point and at least one one digit
  #   to the right of the decimal point.
  #
  #   Example: 30.0..31.5
  #
  #   a Ruby number (Fixnum or Float)
  #
  #   Examples: 26, 30.0
  #
  #   *** If you specify the correct_range with a number instead of a range object
  #   *** you must also specify a highlight_range using a range object. 
  #
  # valid axis values are :x and :y
  #
  :correct_range =&gt; { :range =&gt; 0.0..0.0, :axis =&gt; :x },
  
  # Optional: specify the highlight_range if it is different than the correct_range
   :highlight_range =&gt; { :range =&gt; 8..10, :axis =&gt; :x },
  :no_answer_entered =&gt; 
    { :text =&gt; "Enter your estimate in the box below. Use a number, no letters.", :highlight_region =&gt; false  },
  :correct =&gt; 
    { :text =&gt; "Good job! Go to the next page.", :highlight_region =&gt; false },
  :first_wrong_answer =&gt; 
    { :text =&gt; "That's not correct. Remember, the equation for slope is rise divided by run.", :highlight_region =&gt; false  },
  :second_wrong_answer =&gt; 
    { :text =&gt; "That's still not correct.  Find the slope of the highlighted part of the graph", 
  # { :text =&gt; "That's still not correct. Read the value of the highlighted part of the graph from the x-axis along the bottom.", 

    :highlight_region =&gt; true },
  :multiple_wrong_answers =&gt; 
    { :text =&gt; "That's still not correct. ", :highlight_region =&gt; false }
}

# Create a new SmartGraphRangeResponse object with your response_key and the 
# global variables created by the Smart Graph Number type Question input.
@smart_graph_range_response = SmartGraphRangeResponse.new(response_key, $graph, $smart, $correct, $times_incorrect, $question, $text_field)

# When the "Check Answer" button is clicked the clicked method
# of the @smart_graph_range_response object will be called.
def self.clicked
  @smart_graph_range_response.clicked
end</script>
                                            </OTJRuby>
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariableRealObject name="smart">
                                              <reference>
                                                <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                                              </reference>
                                            </OTScriptVariableRealObject>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <OTBlob id="b7bcf308-c799-11dd-a1e8-5fb63aab74d7" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/smart_graph_range_response.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <OTBlob id="b7bcf309-c799-11dd-a1e8-5fb63aab74d7" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/otrunk_ruby_script_tools.rb" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="graph">
                                              <reference>
                                                <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="times_incorrect">
                                              <reference>
                                                <OTInt value="0" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="correct">
                                              <reference>
                                                <OTBoolean value="true" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="question">
                                              <reference>
                                                <object refid="9b6a2006-c799-11dd-a1e8-5fb63aab74d7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="b7bc089e-c799-11dd-a1e8-5fb63aab74d7" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                        <OTScriptButton id="b7bc08a0-c799-11dd-a1e8-5fb63aab74d7" text="Setup">
                                          <script>
                                            <OTJavascript src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/set-up-smartgraph-button-script.js" />
                                          </script>
                                          <scriptVariables>
                                            <OTScriptVariable name="text_field">
                                              <reference>
                                                <object refid="b7bc089e-c799-11dd-a1e8-5fb63aab74d7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="script_button">
                                              <reference>
                                                <object refid="b7bc089f-c799-11dd-a1e8-5fb63aab74d7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariableComponent name="script_button_component">
                                              <reference>
                                                <object refid="b7bc089f-c799-11dd-a1e8-5fb63aab74d7" />
                                              </reference>
                                            </OTScriptVariableComponent>
                                            <OTScriptVariable name="smart_graph_range_response">
                                              <reference>
                                                <object refid="b7bcf308-c799-11dd-a1e8-5fb63aab74d7" />
                                              </reference>
                                            </OTScriptVariable>
                                            <OTScriptVariable name="otrunk_ruby_script_tools">
                                              <reference>
                                                <object refid="b7bcf309-c799-11dd-a1e8-5fb63aab74d7" />
                                              </reference>
                                            </OTScriptVariable>
                                          </scriptVariables>
                                        </OTScriptButton>
                                      </documentRefs>
                                      <bodyText>
                                        <object refid="b7bc089e-c799-11dd-a1e8-5fb63aab74d7" />
                                        <br />
                                        <table>
                                          <tr>
                                            <td width="100px">
                                              <object refid="b7bc089f-c799-11dd-a1e8-5fb63aab74d7" />
                                            </td>
                                            <td width="100px">
                                              <object refid="b7bc08a0-c799-11dd-a1e8-5fb63aab74d7" viewid="4f731e40-c257-11dc-95ff-0800200c9a66!/script-button-for-authors" />
                                            </td>
                                          </tr>
                                        </table>
                                      </bodyText>
                                    </OTCompoundDoc>
                                  </input>
                                  <context>
                                    <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                                  </context>
                                </OTUDLQuestion>
                              </documentRefs>
                              <bodyText>
                                <object refid="9b6a2006-c799-11dd-a1e8-5fb63aab74d7" />
                                <br />
                              </bodyText>
                            </OTUDLCompoundDoc>
                          </cards>
                          <currentCard>
                            <object refid="90f35c51-ba54-11dd-919b-2f904698bdc2" />
                          </currentCard>
                          <viewedCards>
                            <object refid="90f35c51-ba54-11dd-919b-2f904698bdc2" />
                            <object refid="971d45a2-ba54-11dd-919b-2f904698bdc2" />
                            <object refid="063f929e-ba5c-11dd-8eaf-176da169abd9" />
                            <object refid="c9cb03d6-bb17-11dd-b5fe-4fe1b6f4430d" />
                            <object refid="fc702fbf-bb19-11dd-985e-21bbafda3df9" />
                            <object refid="ead16cec-bb1a-11dd-985e-21bbafda3df9" />
                            <object refid="ce56fc8b-c793-11dd-a63a-a77e012d7714" />
                            <object refid="cf6afd8c-c796-11dd-af51-591f2b2328c9" />
                            <object refid="5b0651aa-c798-11dd-b0c7-451b0f9f96e7" />
                            <object refid="941216ef-c799-11dd-a1e8-5fb63aab74d7" />
                          </viewedCards>
                        </OTCardContainer>
                        <object refid="29dc5ef0-c453-11dc-95ff-0800200c9a66" />
                        <OTUDLMenu id="90f2e720-ba54-11dd-919b-2f904698bdc2" showBorder="false">
                          <cardContainer>
                            <object refid="90f2e71f-ba54-11dd-919b-2f904698bdc2" />
                          </cardContainer>
                        </OTUDLMenu>
                        <object refid="815a49b9-ba54-11dd-919b-2f904698bdc2" />
                        <object refid="82c5e0c2-ba57-11dd-8d5b-2b9b224013a9" />
                      </documentRefs>
                    </OTCompoundDoc>
                  </cards>
                  <currentCard>
                    <object refid="${page-1}" />
                  </currentCard>
                  <viewedCards>
                    <object refid="${page-1}" />
                  </viewedCards>
                </OTCardContainer>
              </content>
              <footer>
                <object refid="${nav-bar}" />
              </footer>
              <north>
                <object refid="2767fe20-6c7d-11dc-8314-0800200c9a66!/section_1/header" />
              </north>
              <center>
                <object refid="${activity-card-container}" />
              </center>
              <south>
                <object refid="${nav-bar}" />
              </south>
            </OTUDLSection>
          </activity>
          <script>
            <object refid="${authoring-script}" />
          </script>
        </OTCurriculumUnit>
      </root>
      <library>
        <object refid="b6350a20-e3b4-11dc-95ff-0800200c9a66" />
        <OTUDLMenu local_id="section-1-menu">
          <cardContainer>
            <object refid="${activity-card-container}" />
          </cardContainer>
          <menuRule>
            <object refid="${page-rule}" />
          </menuRule>
        </OTUDLMenu>
        <OTSnapshotAlbum local_id="album" />
        <OTUDLMenuRule local_id="page-rule" jumpToViewedCard="true" stepAhead="true" />
        <OTJavascript local_id="change_page.js" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/change_page.js" />
        <OTJavascript local_id="show_message.js" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/show_message.js" />
        <OTJavascript local_id="loops_authoring_script.js" src="http://continuum.concord.org/otrunk/examples/LOOPS/scripts/loops_authoring_script.js" />
        <OTScriptObject local_id="authoring-script">
          <variables>
            <OTScriptVariable name="cardContainer">
              <reference>
                <object refid="${activity-card-container}" />
              </reference>
            </OTScriptVariable>
            <OTScriptVariable name="system">
              <reference>
                <object refid="${system}" />
              </reference>
            </OTScriptVariable>
            <OTScriptVariable name="menuPageRule">
              <reference>
                <object refid="${page-rule}" />
              </reference>
            </OTScriptVariable>
          </variables>
          <script>
            <object refid="${loops_authoring_script.js}" />
          </script>
          <scriptState />
        </OTScriptObject>
        <OTNavBar local_id="nav-bar">
          <menuView>
            <object refid="29dc5ef0-c453-11dc-95ff-0800200c9a66" />
          </menuView>
          <cssColor>
            <object refid="31193bb0-c44f-11dc-95ff-0800200c9a66" />
          </cssColor>
        </OTNavBar>
      </library>
    </OTSystem>
  </objects>
</otrunk>