fixed typos in example code