push(), pop(), isEmpty() rewritten, structure of stack redone