Add Rule class
Update RulesActivity and RuleActivity