Correct code examples in blog tutorial