Added the main code and the librarys