streams source code for ass#3