Initial library code without tests.