working to create models for the repositories for Permissions considering re-writing this to be smoother