// Very simple example, using one class.
#include <iostream>

class Busy {
 
  private:
	int Counter;

  public:
	
	// Destructor
	virtual ~Busy() {
	}

	// constructor
	Busy() {
	 Counter = 0;
	}

	void Loop ( int howoften ) {
	 for ( int i = 0; i < howoften; ++ i ) 
		++ Counter ;
	}

	int GetCounter ( ) {
	 return Counter;
	}
};

int main ( int argc, char * argv [] ) {
 Busy B1;
 Busy B2;

 B1.Loop ( 1000 );
 B2.Loop ( 1000000 );

 std::cout << "Counter in B1 is now " << B1.GetCounter() << "\n";
 std::cout << "Counter in B2 is now " << B2.GetCounter() << "\n";

 return 0;
}

