in section 3.5, finish exercise 3.50. but the procedure cons-stream is pending.