Overriding methods in the Object class