adding rule class