Matsya was one of the sixteen Mahajanapadas mentioned in the Buddhist text Anguttara Nikaya. The founder of the kingdom of the Matsya was Virata. It consisted of the present-day Alwar, Jaipur and Bharatpur.
Viharas were for the purpose of living, Chaityas were assemblies for the purpose of discussions. Further, Chaityas were with Stupas, Viharas did not have stupas.