Timer class and example edit