exe3: teacher's code working