     return contact
 }
 
-public func cardFromContact(contact: CNContact) -> ContactCard {
+public func cardFrom(contact: CNContact) -> ContactCard {
     // Show some statistics about the contact:
     print("Phone numbers: \(contact.phoneNumbers.count)")
     print("E-mail addresses: \(contact.emailAddresses.count)")

    return parameters
}

func cardFromJSON(jsonString: String) throws -> ContactCard {
    //print("cardFromJSON: jsonString = \(jsonString)")
    
    var card = ContactCard()


// Expects that the value string is exactly 7 (yearless dates)
// or 10 (full dates) characters in length
func parseBirthday(value: String) -> NSDateComponents {
    let components = NSDateComponents()
    if value.hasPrefix("--") { // it's a yearless date
        components.year = NSDateComponentUndefined
