 The decisions on who was allowed to judge on grazing rights cases were different in the Middle Ages, which reasoned in tradition and in the natural resources in each area, such as water, meadows, lawns and others.Some peasants wrote their own statute, like Poljica republic in 1440.Also, some dukes wrote together with some peasants their own statute, like Law codex of Vinodol from 1288.