It is bad to fall asleep during class.
James's mother was rushed to the hospital during the night, and he didn't have time to sleep before his 9 AM class.
James wants to get some sleep.
James calls in sick and stays home to get some sleep.
James puts his head on his desk to sleep and starts snoring.
James watches the teacher's recorded lectures online later and does his homework.
The teacher yells at James for disturbing the other students and kicks him out of class.