Row correction

Now assigns different value to each label in a given row; need to figure
out how to include columns as well.