The code that accompanies the generator tutorial