added Pi stream example code