replaces from_params with initializer. added model_class and scope