The code for the library app