3.3 solution - set of stacks