Added sample function