     
     private func propertyNamesForClass(aClass: AnyClass?) -> NSArray {
         var propertyCount: UInt32 = 0
-        var propertyList = class_copyPropertyList(aClass, &propertyCount)
-        var properties = NSMutableSet.new()
-        var i: UInt32
+        let propertyList = class_copyPropertyList(aClass, &propertyCount)
+        let properties = NSMutableSet.new()
         
-        for (i = 0; i < propertyCount; i++) {
+        for (var i: UInt32 = 0; i < propertyCount; i++) {
             let property: objc_property_t = propertyList[Int(i)]
             let propertyName = NSString(UTF8String: property_getName(property))
             

    }
    
    func fill(dictionary: NSDictionary) -> Self? {
        let propertyNames: NSArray = self.propertyNames()
        
        for (key, value) in dictionary {
            if (propertyNames.containsObject(key)) {
                self.setValue(value, forKey: key as! String)
            }
        }
        

            if propertyType?.length > 1 {
                var cleanType: AnyObject = propertyType!.componentsSeparatedByCharactersInSet(cleanupSet)
                propertyType = cleanType.componentsJoinedByString("")
            } else {
                switch propertyType as! String {
                case "B":
                    propertyType = "NSNumber"
                    break
                default:
                    break
                }
            }
            
            propertyTypes["\(propertyName!)"] = "\(propertyType!)"
        }
        
        return propertyTypes.copy() as! Dictionary
    }

    func propertyTypes() -> NSDictionary {
        var reference: AnyClass = self.superclass!
        let mutableDictionary = NSMutableDictionary.new()
        mutableDictionary.addEntriesFromDictionary(propertyTypesForClass(self.classForCoder))
        
        while reference.superclass() != nil {
            mutableDictionary.addEntriesFromDictionary(propertyTypesForClass(reference))
            reference = reference.superclass()!
        }
        
        return mutableDictionary.copy() as! NSDictionary
    }

    class func initWithDictionary(dictionary :NSDictionary) -> Self? {
