add stack class using namespace XStack