Made a rule class