Define base classes.