Updates code snippits in tutorial.

@jhlch