Sharper gradient and SwC random exercises