model class creation