Statement 2 is correct. The Mahabhasya, attributed to Patanjali, is a commentary on selected rules of Sanskrit grammar from Panini's treatise, the Astadhyayi, as well as Katyayana's Varttika-sutra, an elaboration of Panini's grammar. It is dated to the 2 nd century BCE.