added code for a writing project fixed