Add some base classes in foundation model.