Implement ch12/01-types-of-streams examples