creating model class