new class for rules