Implemented a set of stacks