public class Tester
{
  public static void main (String [] args)
  {
      Die die1, die2; // declaration of Die objects
		Throw [] myThrows;  // declaration of Throw array
		int value1, value2; // result of roll
		Throw aThrow;
		
		// instantiate die objects
		die1 = new Die();
		die2 = new Die();
		
		// roll the dice and print the results
		value1 = die1.roll();
  		System.out.println (" first roll is " + value1);
		
		value2 = die2.roll();
		System.out.println (" second roll is " + value2);
		
		// constructing a Throw object and using values from
		// existing dice
		aThrow = new Throw(die1.getFaceValue(), die2.getFaceValue());
		System.out.println 
		(" \n Here's the result of the two dice thrown \n" 
		  +  aThrow.toString());
		  
		myThrows = new Throw[5];  
		for (int i = 0; i < 5; i++)
		{
		   value1 = die1.roll();
			value2 = die2.roll();
			myThrows[i] = new Throw(value1, value2);
		} // end for

	  System.out.println 
	    ( " \n The 5 first throws from the array are:  ");
		
		for (int i = 0; i < 5; i++)
		{
		   System.out.println (myThrows[i].getFirstThrow());
      } // end for
	} // end main
} // end class