add a timer demo using with-statement magic method