SimpleSampleCode updated