updated stacks example