The relation of cognitive and affective measures to achievement during an instructional sequence