finished Numerstack.java