add rule base class