added sample code
fixed typo