Mapping data from array