function [classes, map] = mymapping(dataset)

classes = [];
map = [];

for i=1:length(dataset(:,1));
    
    if isempty(classes)
        classes = [classes; dataset(i,end)];
        map = {find(dataset(:,end)==dataset(i,end))};
    else
        
        indice = find(classes(:,1)==dataset(i,end));
        if isempty(indice)
            classes = [classes; dataset(i,end)];
            map = [map; {find(dataset(:,end)==dataset(i,end))}];
        end
    end
end