added a method for the TripRepository