  
  ***/
 
-private extension TaskPriority
+extension TaskPriority
 {
    // The number of seconds that the priority is supposed to last for
    var duration: NSTimeInterval? {

               aggregatedDuration += priorityDuration
               let taskPriorityAdvanceDate = task.lastPriorityChangeDate.dateByAddingTimeInterval(aggregatedDuration)
               
               if currentDate >= taskPriorityAdvanceDate {
                  newPriority = priority.nextPriority
               }

         })
      }
   }
}