SetStack class (untested)