toString for base classes