Nice solution, but are you sure it is correct? I tried it and it just gives number 1 to all the items on the table.