updated wordProcessor class