Consider the following statements about ganas, during the period of Mahajanapadas:
1. Those Mahajanapadas which were oligarchies were called ganas.
2. Mahavira and the Buddha belonged to ganas.
3. Magadha, the most powerful mahajanapada, was an oligarchy.
Which of the statements given above are correct?