book class now inherits bookinfo in order to construct book objects