import MyStack;

/*
 * Shows the basics in class.
 * Object declaration, allocation, construction.
 * invoking methods on an object.
 */
class StackTest {
    public static void main(String[] args) {
        MyStack s = new MyStack();
	s.push ("first");
	s.push ("second");
	s.push ("third");
	while (!s.empty()) System.out.println(s.pop());
    }
}

