             emailAddress: "mruiz2@mac.com",
             monogram: "MR",
             image: nil),
-        
+
         OCKContact(contactType: .CareTeam,
             name: "Bill James",
             relation: "Nurse",

            phoneNumber: CNPhoneNumber(stringValue: "888-555-5512"),
            messageNumber: CNPhoneNumber(stringValue: "888-555-5512"),
            emailAddress: "billjames2@mac.com",
            monogram: "BJ",
            image: nil),
        
        OCKContact(contactType: .Personal,
            name: "Tom Clark",
            relation: "Father",
            tintColor: Colors.Yellow.color,
            phoneNumber: CNPhoneNumber(stringValue: "888-555-5512"),
            messageNumber: CNPhoneNumber(stringValue: "888-555-5512"),
            emailAddress: nil,
            monogram: "TC",
            image: nil)
    ]
    
    // MARK: Initialization
    
    required init(carePlanStore: OCKCarePlanStore) {
        super.init()

        // Populate the store with the sample activities.
        for sampleActivity in activities {
            let carePlanActivity = sampleActivity.carePlanActivity()
            
            carePlanStore.addActivity(carePlanActivity) { success, error in
                if !success {
                    print(error?.localizedDescription)
                }
            }
        }
        
    }
    
    // MARK: Convenience
    
    /// Returns the `Activity` that matches the supplied `ActivityType`.
    func activityWithType(type: ActivityType) -> Activity? {
        for activity in activities where activity.activityType == type {
            return activity
        }
        
        return nil
    }
    
    func generateSampleDocument() -> OCKDocument {
        let subtitle = OCKDocumentElementSubtitle(subtitle: "First subtitle")
        
        let paragraph = OCKDocumentElementParagraph(content: "Lorem ipsum dolor sit amet, vim primis noster sententiae ne, et albucius apeirian accusata mea, vim at dicunt laoreet. Eu probo omnes inimicus ius, duo at veritus alienum. Nostrud facilisi id pro. Putant oporteat id eos. Admodum antiopam mel in, at per everti quaeque. Lorem ipsum dolor sit amet, vim primis noster sententiae ne, et albucius apeirian accusata mea, vim at dicunt laoreet. Eu probo omnes inimicus ius, duo at veritus alienum. Nostrud facilisi id pro. Putant oporteat id eos. Admodum antiopam mel in, at per everti quaeque. Lorem ipsum dolor sit amet, vim primis noster sententiae ne, et albucius apeirian accusata mea, vim at dicunt laoreet. Eu probo omnes inimicus ius, duo at veritus alienum. Nostrud facilisi id pro. Putant oporteat id eos. Admodum antiopam mel in, at per everti quaeque.")
            
        let document = OCKDocument(title: "Sample Document Title", elements: [subtitle, paragraph])
        document.pageHeader = "App Name: OCKSample, User Name: John Appleseed"
        
        return document
    }
}

import CareKit

class SampleData: NSObject {

    // MARK: Properties

    /// An array of `Activity`s used in the app.
