Created RulesEngine Class

Reorged rules to make code cleaner.