Add a sample function