Pattern base class