Update cookbook.rst

I think the 'alternative approach' is in the wrong place