     }
     
     
-    override public func windowControllerDidLoadNib(aController: NSWindowController) {
+    override func windowControllerDidLoadNib(aController: NSWindowController) {
         super.windowControllerDidLoadNib(aController)
         // Add any code here that needs to be executed once the windowController has loaded the document's window.
     }
     
-    override public class func autosavesInPlace() -> Bool {
+    override class func autosavesInPlace() -> Bool {
         return true
     }
     
-    override public var windowNibName: String? {
+    override var windowNibName: String? {
         // Returns the nib file name of the document
         // If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this property and override -makeWindowControllers instead.
         return "Document"
     }
     
-    override public func dataOfType(typeName: String, error outError: NSErrorPointer) -> NSData? {
+    override func dataOfType(typeName: String, error outError: NSErrorPointer) -> NSData? {
         // Insert code here to write your document to data of the specified type. If outError != nil, ensure that you create and set an appropriate error when returning nil.
         // You can also choose to override fileWrapperOfType:error:, writeToURL:ofType:error:, or writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead.
         outError.memory = NSError(domain: NSOSStatusErrorDomain, code: unimpErr, userInfo: nil)
         return nil
     }
     
-    override public func readFromData(data: NSData, ofType typeName: String, error outError: NSErrorPointer) -> Bool {
+    override func readFromData(data: NSData, ofType typeName: String, error outError: NSErrorPointer) -> Bool {
         // Insert code here to read your document from the given data of the specified type. If outError != nil, ensure that you create and set an appropriate error when returning false.
         // You can also choose to override readFromFileWrapper:ofType:error: or readFromURL:ofType:error: instead.
         // If you override either of these, you should also override -isEntireFileLoaded to return NO if the contents are lazily loaded.

        self.employees.insertObject(p, atIndex: index) 
    }
    
    
    
    public func removeObjectAtEmployeesIndex(index: Int) {
        let p: Person = self.employees.objectAtIndex(index) as Person
        println("removing \(p) to \(self.employees)")
        let undo = self.undoManager
        
        undo?.prepareWithInvocationTarget(self).insertObject(p, atArrangedObjectIndex: index)
        
        if (false == undo?.undoing) {
            undo?.setActionName("Remove Person")
        }
        
        self.employees.removeObjectAtIndex(index)
        
    }
    
    public func removeObjectFromeEmployeesIndex(index: Int) {
        let p: Person = self.employees.objectAtIndex(index) as Person
        println("removing \(p) to \(self.employees)")
        let undo = self.undoManager

    @IBAction func onCheck(sender: AnyObject) {
        println(self.employees)
    }
   
    @IBAction func createEmployee(sender: AnyObject)
    {
        let w: NSWindow = self.tableView.window!
