<pre>on goResource resName  put pile(resName) into theStack  if there is a stack theStack then    pushCard    go to stack theStack    adjustCheckMarks  end ifend goResource</pre>