creating a ride process is functional