Add basic rule class.