Fixed typos to make this sample copy-pasteable