utilize stack STL to define your class