added inheritance of Object class