Update stackImplementation.java