Restructure the code in order to manage the library in the ide