 		self.init(guid: nil, name: name, favorited: favorited, state: state)
 	}
 
+	// MARK: Initialization
 	init(guid: String?, name: String?, favorited: Bool, state: TodoState) {
 
 		if let localGuid = guid {

		self.name = name
		self.favorited = favorited
		self.state = state
	}

	// MARK: Equatable
	static func ==(lhs: Todo, rhs: Todo) -> Bool {

import Foundation

class Todo: NSObject, NSCoding {

	var guid: String!
	var name: String?
	var favorited: Bool!
	var state: TodoState!

	struct PropertyKey {
		static let guidKey 		= "guid"
		static let nameKey 		= "name"
		static let favoritedKey = "favorited"
		static let stateKey 	= "state"
	}

	convenience override init() {
		self.init(guid: nil, name: nil, favorited: false, state: .NotDone)
