Implemented Stack.