Either one could be correct. It depends whether it is all the students from class 2, grade nine, or just a few of them. If it was all, you should use 'the'; if it was just a few, you should say either "Students from class 2..." or "Some students from class 2...".