initial version of Stream example