Added getRules method