Tim was frustrated because he had to still do his calculus homework.
Tim was able to grasp the concepts and receive a passing grade.
Tim worked all night on the videogame.
Tim worked all night on his homework.