Change the given sentence into past perfect tense.
The students did the homework correctly.
1
The students were done with correctly doing the homework.
2
The students had done the homework correctly.
3
The students have done the homework correctly.
4
The students were doing the homework correctly.