Fixed a mistake. Sample code doesn't work.