Chapter10  rewrites