A clever way to sleep in class