Sanskrit texts use the term kula to designate families and jnati for the larger network of kinfolk. The term vamsha is used for lineage. In Brahmanical theory, jati, like varna, was based on birth. However, while the number of varnas was fixed at four, there was no restriction on the number of jatis. Jatis which shared a common occupation or profession were sometimes organised into shrenis or guilds.