fixing tutorial as per #2756

making this tutorial useful as current state is broken.
for more info see #2756