Updated sample scripts

Updated the samples.