Please correct my understanding of the text in the following sentences. I'm not sure if I understand them correctly. Спасибо.

Ex. 19
4. Ученики просили выйти из класса.
The students requested to go out of the classroom.

5. Врачи долго его диагнозировали.
The doctors took a long time in their diagnosis.