Code error in Twisted chapter. Fixes #6