FIX: resource_class is now a protected method