public class PairInfo
{
   private Person person1;
   private Person person2;
   private int matchScore;
   
   public PairInfo(Person p1, Person p2, int score)
   {
      person1 = p1;
      person2 = p2;
      matchScore = score;
   }
   
   /* Get methods */
   public Person getPerson1() { return person1; }
   public Person getPerson2() { return person2; }
   public int getMatchScore() { return matchScore; }
}

@@ -14,16 +14,48 @@
 PairInfo
+ implements Comparable%3CPairInfo%3E
 %0A%7B%0A   pr
@@ -440,10 +440,134 @@
 core; %7D%0A
+   %0A   // CompareTo%0A   public int compareTo(PairInfo pInfo)%0A   %7B%0A      return this.matchScore - pInfo.getMatchScore();%0A   %7D%0A
 %7D%0A

Update PairInfo.java