Updated Rule.java