add datacontractor to serialize the objects to xml