moved timer to separate class