updated ClassInheirant and viaEach