Ability to retrieve rules and save rule

ability so save and get rules