Add initial library code