Implementation of "Stack" based on Adapter Pattern