             }
             .subscribeNext { value in
                 self.startStopButton.setTitle("Stop Timer", forState: .Normal)
+
                 let dateComponents = NSDateComponents.init()
                 let calendar = NSCalendar.currentCalendar()
                 dateComponents.second = self.timeForNumberOfTots(self.totalNumberOfTots.value)

    
    var totalNumberOfTots = Variable(5)
    var timerRunning = Variable(false)
    var timer: NSTimer?
    var targetDate: NSDate?
    var degrees = 0.0
    
    override func viewDidLoad() {
        super.viewDidLoad()

            }
            .subscribeNext { value in
                self.startStopButton.setTitle("Start Timer", forState: .Normal)
                self.rx_timer_disposable?.dispose()
                self.rx_timer_disposable = nil
                
                self.targetDate = nil
                self.cancelLocalNotifications()
                self.totImage.transform = CGAffineTransformIdentity
