Fix tutorial examples

Closes #525