Code for creating a stack, listing stacks and getting a stack.