stream-adventures code for the tutorial