add code for persisting trips