extended for classes