update Gradient example