Define base class in a module