inherit from an object