Update library.cpp

Replaced outdated file.