implemented CwWriter