How to create a libs