created a working countdown