Fix with block
Merge pull request #858 from svieira/patch-2

Patch for tutorial (minor code error)