how to create a lib