Add sample using template