First version using braking distance