edited model for api lessons