Added doesTomRide function to the project