Issue #36; support extraction from a stream.

Here's an implementation of 'extract-from-a-stream'.
indentation error