 class ViewController: UIViewController {
 
     let powerball = RHBCombinations(N: 69, K: 5)
-    var buttons:Array<UIButton>?
+    let extraballCount = 26
+    var labels:Array<UILabel>?
     
     func randomize() {
         
         let random = arc4random_uniform(UInt32(self.powerball.count))
-        let combo = self.powerball[Int(random)]
-        (0..<powerball.K).forEach {
+        let combination = self.powerball[Int(random)]
+        labels?.prefix(powerball.K).enumerated().forEach {
             
-            let num = String(combo[$0] + 1)
-            let button = self.buttons?[$0]
-            button?.setTitle(num, for: UIControlState.normal)
+            $1.text = String(combination[$0] + 1)
         }
+        labels?.last?.text = String(arc4random_uniform(UInt32(self.extraballCount))+1)
     }
     
     override func viewDidLoad() {

        
        let viewframe = self.view.frame
        var size = viewframe.size
        size.width /= CGFloat(self.powerball.K)
        size.height = size.width
        
        let h = (viewframe.size.height - size.height) / 2
        
        self.buttons = (0..<self.powerball.K).map {
            
            let point = CGPoint(x: CGFloat($0)*size.width, y: h)
            let frame = CGRect(origin: point, size: size).insetBy(dx: 5, dy: 5)
            let button = UIButton(frame: frame)
            button.backgroundColor = UIColor.red
            button.tintColor = UIColor.yellow
            button.layer.cornerRadius = frame.width/2
            button.layer.borderWidth = frame.width*0.1
            button.layer.borderColor = UIColor.darkGray.cgColor
            return button
        }
        
        self.buttons?.forEach {
            
            self.view.addSubview($0)
        }

        
        let button = UIButton(frame: rrect)
        button.backgroundColor = UIColor.darkGray
        button.setTitle("PLAY", for: UIControlState.normal)
        button.setTitleColor(UIColor.red, for: UIControlState.highlighted)
        button.addTarget(self, action: #selector(self.randomize), for: UIControlEvents.touchUpInside)
        button.layer.cornerRadius = rrect.height / 4
