

#import "Person.h"


@implementation Person

@synthesize firstName, lastName;

- (id) init {
	if(self = [super init]) {
		firstName = [[NSString alloc] init];
		lastName = [[NSString alloc] init];
	}
	
	return self;
}

- (void) dealloc {
	[firstName release];
	[lastName release];
	[super dealloc];
}

- (id) initWithCoder:(NSCoder *)coder {
	firstName = [[coder decodeObjectForKey:@"firstName"] retain];
	lastName = [[coder decodeObjectForKey:@"lastName"] retain];
	return self;
}

- (void) encodeWithCoder:(NSCoder *)encoder {
	[encoder encodeObject:firstName forKey:@"firstName"];
	[encoder encodeObject:lastName forKey:@"lastName"];
}

@end
