Cognitive Modeling and Self-Regulation of Learning in Instructional Settings