worked on pseudo code for countdown functionality