Changes in the method 'pop()' and method 'showStack()'