Implemented NSCoding protocol for DTOs