ModelLibrary for creating models with scopes defined by funcions (something like reusable class bodies)