new example: timer interrupts at a given period.