update the speed regulation example