Solution to the stream adventure tutorial