Stack implementation

Stack implementation