Creating core data mapping.