fix lab 9 code snippet

fix timer callback code snippet in lab 9