Merge "First draft of the sample function implementation."