Implemented the Stack