add stream.c file