exercise 2 X_stream