Introduced Push() and Pop() methods for basic stack functionality and Next() method to simplify iterator implementations.