typo fix
adding the sample code for the examples