revword.cpp done