Lesson 2 - PermCheck (from scratch)