How does my object work within a timer?