Library base classes