Added inheritance of 'object' for Dog and Cat classes.