updated NumberStack.java