lesson2 task1 (#4) - perm check