correctly inherits class attributes in the method resolution order