add destructor declaration ~stack() in header file