Added sample for new permission algo