Update ride.cpp