minor changes in the boundedstack example