new code sentencetowords.cpp