edited model for api lecture