Correction of the library but still with mistakes