In the given sentence, identify the segment which contains the grammatical error.
Each of the students in the computer class has to type their own research paper this semester.
1
Each of the students
2
in the computer class has to type
3
their own
4
research paper this semester.