Updates code snippits in tutorial.