Create ChainStack.java