Now taking into account attributes in classes