Added getters and setters for Rule class