#include <iostream>
#include <string>
#include "Stack.cpp"
using namespace std;

int main(){

try {
	Stack<string> st;

	st.push("Ath");
	st.push("The");
	st.push("Ioa");
	st.push("Cha");

	//error due to private interface
	//st.insert(st.begin(),"Pat");

	cout<< "Stack size:"<< st.size();
	cout<< "Poping out all ellemnts from the Stack" << endl;

	while (!st.empty()){
		cout << st.top() <<endl;
		st.pop();
		}

}

catch (EmptyStructure exc){
	cerr<<exc.what()<<"Aborting"<<endl;
}

return 0;
}
