Refactored countdown module to object