Add sample function