Databases for classes and generic functions in phase 2.