Tim's history class was first thing in the morning.
Tim failed the final exam.
Tim stayed up all night and slept through his morning alarms, so he didn't wake up in time for class.
Tim was on time for the test and had studied hard.