While the version of the code below in the book is correct in that both versions of doStuff have a capital S, the version on the CD (which I copied and puzzled over until Marc Weber kindly pointed out the problem) has one of the methods called doStuff and the other called dostuff.