archive object using NSKeyedArchive and NSKeyedUnarchive class