Add base classes (#5)