implement NSCoding protocol for Content class