 class PageController: UIViewController {
   
   var page: Page?
+  
+  let artwork = UIImageView()
+  let storyLabel = UILabel()
+  let firstChoiceButton = UIButton(type: .system)
+  let secondChoiceButton = UIButton(type: .system)
   
   required init?(coder aDecoder: NSCoder) {
     /*

    // Dispose of any resources that can be recreated.
  }
  
  
  /*
   // MARK: - Navigation
   
   // In a storyboard-based application, you will often want to do a little preparation before navigation
   override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
   // Get the new view controller using segue.destinationViewController.
   // Pass the selected object to the new view controller.
   }
   */
  
}

  override func viewDidLoad() {
    super.viewDidLoad()
    if let page = page {
      artwork.image = page.story.artwork
      let attributedString = NSMutableAttributedString(string: page.story.text)
      
      let paragraphStyle = NSMutableParagraphStyle()
      paragraphStyle.lineSpacing = 10
      
      attributedString.addAttribute(NSParagraphStyleAttributeName, value: paragraphStyle, range: NSMakeRange(0, attributedString.length))
      
      storyLabel.attributedText = attributedString
      
      if let firstChoice = page.firstChoice {
        firstChoiceButton.setTitle(firstChoice.title, for: .normal)
      } else {
        firstChoiceButton.setTitle("Play Again", for: .normal)
      }
      
      if let secondChoice = page.secondChoice {
        secondChoiceButton.setTitle(secondChoice.title, for: .normal)
      }
    }
  }
  
  override func didReceiveMemoryWarning() {
