Studying the examples in a good book is a great way to learn, but you need to run the examples and play with them a little. I don't have that book, but it is unlikely that the code you posted would come from there. Why don't you go ahead now and run that code first and tell us how you think it works (or doesn't)? Then monks will be able discuss it with you. Cheers.