 
     var window: UIWindow?
     var audioPlayer: AVAudioPlayer?
-    //var alarmDelegate: AlarmApplicationDelegate?
+    var alarmScheduler: AlarmSchedulerDelegate = Scheduler()
 
 
     func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {


protocol AlarmApplicationDelegate
{
    //typealias Weekday
    func playAlarmSound()
    //something wrong with typealias, use Int instead
    func setNotificationWithDate(date: NSDate, onWeekdaysForNotify:[Int]?)
    func setupNotificationSettings()
    
    
}

@UIApplicationMain

        //alarmDelegate? = self
        //alarmDelegate!.setupNotificationSettings()
        
        alarmScheduler.setupNotificationSettings()
        window?.tintColor = UIColor.redColor()
        return true
    }
