add PeriodicThread example