Created a protection class for different types of protects