minor update of WriteExample4