WHEN I ARRIVED, THE STUDENTS HAD ALREADY GONE INTO CLASS.

1. When I arrived, the students had already gone into class.