added classes and basic permissions