In the method 'showStack()' the statements of the vars are made inside the condition
Just a change in the order of the condition in the function 'push()'
Another implementation of the stack data structure, using functions and manual manipulation of the array index