updated sample project to support new delegate method

sample functions with PR #20