global

def each

def each
  while has_more_elements
    yield(next_element)
  end
end