Add a function sample.