How-to Pull an All-Nighter and Prepare for an Exam