public class Category
{
    public Category (String type, int r1, int r2, int r3, int r4, boolean debug)
    {
        _name = type;
        _debug = debug;
    }

    public boolean valid (Ticket t)
    {
        return false;
    }

    public final String getType ()
    {
        return _name;
    }

    @Override
    public String toString ()
    {
        return "Category "+_name;
    }

    @Override
    public boolean equals (Object obj)
    {
        if (obj == null)
            return false;

        if (this == obj)
            return true;
        
        if (getClass() == obj.getClass())
        {
            Category temp = (Category) obj;

            return _name.equals(temp._name);
        }

        return false;
    }

    private String _name;
    private boolean _debug;
}
@@ -126,16 +126,88 @@
 = type;%0A
+        _r1 = r1;%0A        _r2 = r2;%0A        _r3 = r3;%0A        _r4 = r4;%0A
         
@@ -222,16 +222,16 @@
  debug;%0A
-
     %7D%0A%0A 
@@ -448,24 +448,60 @@
 gory %22+_name
++%22: %22+_r1+%22-%22+_r2+%22 or %22+_r3+%22-%22+_r3
 ;%0A    %7D%0A%0A   
@@ -845,24 +845,24 @@
 lse;%0A    %7D%0A%0A
-
     private 
@@ -871,24 +871,76 @@
 ring _name;%0A
+    private int _r1, _r2;%0A    private int _r3, _r4;%0A
     private 

Update Category.java