public class Verifier
{
    public static final String EXAMPLE_FILE = "example.txt";

    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    public final boolean verify ()
    {
        Rules theRules = new Rules(_debug);
        Inventory inv = theRules.parse(EXAMPLE_FILE);

        System.out.println("Loaded rules:\n\n"+inv);

        return false;
    }

    private boolean _debug;
}
@@ -77,16 +77,126 @@
 le.txt%22;
+%0A    public static final Bag BAG_TYPE = new Bag(%22shiny gold%22);%0A    public static final int NUMBER_OF_BAGS = 4;
 %0A%0A    pu
@@ -398,24 +398,48 @@
 PLE_FILE);%0A%0A
+        if (_debug)%0A    
         Syst
@@ -476,24 +476,199 @@
 n%5Cn%22+inv);%0A%0A
+        int count = inv.bagCount(BAG_TYPE);%0A%0A        System.out.println(%22got %22+count);%0A        %0A        if (count == NUMBER_OF_BAGS)%0A            return true;%0A        else%0A    
         retu

Update Verifier.java