Do your homework before you go to bed