Create model generator