initial commit
refactorying of count_down function