Why is it "studentem" and not just "student"? Isn't it Nominative?
Studentem is the instrumental case. Both the nominative and the instrumental are possible. There are subtle differences between these two that even native speakers don't exactly follow and I suggest you to ignore them now.