public class Triangle2
{
   private int width;
	int smallerArea;
	Triangle2 smallerTriangle;

	 
   public Triangle2 (int aWidth)
	{
	   width = aWidth;
	}
	
	public int getArea()
	{
	
	  if (width <= 0) return 0;
	  if (width == 1) return 1;
	  
	  smallerTriangle = new Triangle2 (width -1);
	  smallerArea = smallerTriangle.getArea();
	  return smallerArea + width;
	}
}