Create a class hierarchy to represent a library that will be able to represent the following entities.