Working stack STL and template