Adding r_base class