New stack implementaion and comments