Affect, Self-Motivation, and Cognitive Development: A Dialectical Constructivist View