adding timer example