- Improved Stack class to handle refcounting + test