Adding toString() to specialized classes.