Updating Length example.
Added error message to rulesToRewrite.