First draft of the sample function implementation.

Change-Id: I51bb999419b5b424a8549461a6d91f48f3fc9298
7 files changed