adjust elevator example to use exogenous events