<pre>on stopUsingAllStacks  put the stacksInUse into turnedOnStacks  if turnedOnStacks is empty then exit stopUsingAllStacks  repeat with x = 1 to the number of lines of turnedOnStacks    stop using stack line x of turnedOnStacks  end repeatend stopUsingAllStacks</pre>