Professor Stewart wrote a very positive letter of recommendation for a student, despite his doubts about her competence. After writing the letter, he began to develop a more favorable attitude toward the student's abilities. Which theory best explains why?