Fixed typos in sample code.