Update an exercise.