Task1: used CBV for the library app