I moved yout post to this forum, I don't think it was about the book where you posted it. Also, you might try editing your post and wrapping your long code lines near the end so it's easier to read.
Associate Publisher, WROX - A Wiley Brand
Did someone here help you? Click
on their post!