Rewriting base classes