word_stream: move the class into the cpp file