[example] added example of by and expire reactors