added basic countdown implementation