Define the events for the Book Library example.