Adding rule class