Have prepareforSegue in Library set up to pass Library to Shelf ViewController. Also refactored and regrouped for better clarity.