Add basic library code