got code from website

code from wrox.com