class TriangleList2 {

   public double smallestPerimeter() {
   
      if (numberOfTriangles <= 0) {
         return 0;
      }
      
      double smallest = tList[0].perimeter();
      int index = 0;
      while (index < numberOfTriangles) {
         if (!(smallest < tList[index].perimeter())) {
            smallest = tList[index].perimeter();
         }
         index++;  
      }   
      
      return smallest;
   }

   public  TriangleList2(String listNameIn, Triangle[] tListIn, 
                        int numberOfTrianglesIn);

}