new file:   ride.cpp