public class App {
	public static void main(String [] args) {
		System.out.println("Playing with UnboundedCounter");

		UnboundedCounter uc = new UnboundedCounter();
		System.out.println("Initially: " + uc);

		for (int i = 1; i <= 20; i++)
			uc.up();
		System.out.println("After 20 up's: " + uc);

		for (int i = 1; i <= 3; i++)
			uc.down();
		System.out.println("After 3 down's: " + uc);

		System.out.println();	//---------

		System.out.println("Playing with UpperBoundedCounter");

		UpperBoundedCounter ubc = new UpperBoundedCounter(10);
		System.out.println("Initially: " + ubc);

		for (int i = 1; i <= 20; i++)
			ubc.up();
		System.out.println("After 20 up's: " + ubc);

		for (int i = 1; i <= 3; i++) 
			ubc.down();
		System.out.println("After 3 down's: " + ubc);
	}
}
