model can be passed as class now