         
 
     }
+    
+    func refreshImages() {
+        var i = 0
+        for image in photos {
+            photoButtons[i].setBackgroundImage(image, forState: .Normal)
+            i = i + 1
+        }
+        while i < photoButtons.count {
+            photoButtons[i].setBackgroundImage(UIImage(named: "no-photo"), forState: .Normal)
+            i = i + 1
+        }
+        
+        
+    }
+    
 
     func arrowClicked() {
     
     }
+    
+    func confirmPhoto () {
+        confirmationView.removeFromSuperview()
+    }
+    
+    func excludePhoto() {
+        
+        photos.removeAtIndex(selectedPhoto)
+        
+        refreshImages()
+        confirmationView.removeFromSuperview()
+
+        
+    }
+    
+    func selectedPhoto (sender:UIButton) {
+        
+        if(sender.tag < photos.count)
+        {
+            selectedPhoto = sender.tag
+            
+            confirmationImageView.image = photos[selectedPhoto]
+            
+            view.addSubview(confirmationView)
+        
+        }
+        
+    }
+    
+
 }

//

import UIKit

class PhotoViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    
    @IBOutlet var photoLibrary: UIButton!
    @IBOutlet var camera: UIButton!

    var photoButtons = [UIButton]()
    
    var confirmationView: UIView!
    
    var confirmationImageView : UIImageView!
    
    var selectedPhoto = 0
    
    override func viewDidLoad() {
        super.viewDidLoad()
