wrap model class around factory