Perfect! The speed is under your control. You can always change the speed by increasing and decreasing it so that the car's energy reaches the assigned value between 8 and 12 units.

In this way, a car's energy is a continuous quantity. It can be any value in a given range of values.