/** note:
	 method calls itself with smaller width
	 method has a stopping case
	 method has two return statements
*/
public class Triangle
{  
  private int width; 
  public Triangle (int aWidth)
  {
     width = aWidth;
	}

public int getArea()
{
  Triangle smallerTriangle;  // error Tiangle
  int smallerArea;           // SmallerArea
  if (width == 1)   // stopping case
    return 1;   		
  smallerTriangle = new Triangle (width - 1);  // recursive call
  smallerArea = smallerTriangle.getArea();  // error samllerTriangle
  return smallerArea + width;
 } // end getArea
 
} // end class Triangle
  