example creating a Ticker with callback