Library code structure