During the Ayutthayan period, the basis of Thai common law was introduced by King Ramathibodi (1351-1369), who drew upon the Indian legal code of Manu, while the powerful King Boromtrailokant (1448-1488) centralized the administration of his huge kingdom and introduced various other civil, economic and military reforms. Perhaps the most important was the sakdi naa system, in which an individual's social position was related to the size of his landholdings. The heir apparent controlled 16,000 ha, the highest official 1600 ha, and the lowest commoner 4 ha. A code of conduct for royalty was also introduced, with punishments again linked to position: princes of high rank who had violated the law were to be bound by gold fetters, those of lower rank by silver. The execution of a member of the royal family was, it has been said, carried out by placing them in a sack and either beating them to death with scented sandalwood clubs or having them trampled by white elephants. Even kicking a palace door would, in theory, lead to the amputation of the offending foot.