modified library display method to print book titles