Mapping data to objects