chapter 6-3: classifying students, a two-pass solution