Implement Goldilocks Bayesian adaptive design for time-to-event outcomes using a piecewise exponential distribution.