update chater9 code: swindler's diabolical plan